Issues (1543)

bin/doctrine-pear.php (1 issue)

Labels
Severity
1
<?php
2
3
4
declare(strict_types=1);
5
6
require_once 'Doctrine/Common/ClassLoader.php';
7
8
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
0 ignored issues
show
The type Doctrine\Common\ClassLoader 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...
9
$classLoader->register();
10
11
$classLoader = new \Doctrine\Common\ClassLoader('Symfony');
12
$classLoader->register();
13
14
$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
15
16
$helperSet = null;
17
if (file_exists($configFile)) {
18
    if ( ! is_readable($configFile)) {
19
        trigger_error(
20
            'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR
21
        );
22
    }
23
24
    require $configFile;
25
26
    foreach ($GLOBALS as $helperSetCandidate) {
27
        if ($helperSetCandidate instanceof \Symfony\Component\Console\Helper\HelperSet) {
28
            $helperSet = $helperSetCandidate;
29
            break;
30
        }
31
    }
32
}
33
34
$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();
35
36
\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet);
37