yiisoft /
demo
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | use Dotenv\Dotenv; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | require_once __DIR__ . '/vendor/autoload.php'; |
||
| 8 | |||
| 9 | $dotenv = Dotenv::createImmutable(__DIR__); |
||
| 10 | $dotenv->load(); |
||
| 11 | |||
| 12 | $_ENV['YII_ENV'] = empty($_ENV['YII_ENV']) ? null : (string) $_ENV['YII_ENV']; |
||
| 13 | $_SERVER['YII_ENV'] = $_ENV['YII_ENV']; |
||
| 14 | |||
| 15 | $_ENV['YII_DEBUG'] = filter_var( |
||
| 16 | !empty($_ENV['YII_DEBUG']) ? $_ENV['YII_DEBUG'] : true, |
||
| 17 | FILTER_VALIDATE_BOOLEAN, |
||
| 18 | FILTER_NULL_ON_FAILURE |
||
| 19 | ) ?? true; |
||
| 20 | $_SERVER['YII_DEBUG'] = $_ENV['YII_DEBUG']; |
||
| 21 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths