Test Failed
Pull Request — master (#11)
by
unknown
02:15
created

cli-config.php (2 issues)

1
<?php
2
use Doctrine\ORM\Tools\Console\ConsoleRunner;
3
use Pz\Doctrine\Rest\Tests\TestCase;
0 ignored issues
show
The type Pz\Doctrine\Rest\Tests\TestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
5
// replace with file to your own project bootstrap
6
require_once __DIR__.'/vendor/autoload.php';
7
8
// replace with mechanism to retrieve EntityManager in your app
9
$entityManager = TestCase::generateEntityManager();
10
return ConsoleRunner::createHelperSet($entityManager);
0 ignored issues
show
Deprecated Code introduced by
The function Doctrine\ORM\Tools\Conso...nner::createHelperSet() has been deprecated: This method will be removed in ORM 3.0 without replacement. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

10
return /** @scrutinizer ignore-deprecated */ ConsoleRunner::createHelperSet($entityManager);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
11
12