bluzphp /
framework
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * Bluz Framework Component |
||
| 5 | * |
||
| 6 | * @copyright Bluz PHP Team |
||
| 7 | * @link https://github.com/bluzphp/framework |
||
| 8 | */ |
||
| 9 | |||
| 10 | declare(strict_types=1); |
||
| 11 | |||
| 12 | namespace Bluz\Config; |
||
| 13 | |||
| 14 | use Bluz\Collection\Collection; |
||
|
0 ignored issues
–
show
|
|||
| 15 | use Bluz\Common\Container\Container; |
||
| 16 | use Bluz\Common\Container\RegularAccess; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Config |
||
| 20 | * |
||
| 21 | * @package Bluz\Config |
||
| 22 | * @author Anton Shevchuk |
||
| 23 | * @link https://github.com/bluzphp/framework/wiki/Config |
||
| 24 | */ |
||
| 25 | class Config |
||
| 26 | { |
||
| 27 | use Container; |
||
| 28 | use RegularAccess; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Return configuration by key |
||
| 32 | * |
||
| 33 | * @param array $keys |
||
| 34 | * |
||
| 35 | * @return array|mixed |
||
| 36 | * @throws ConfigException |
||
| 37 | */ |
||
| 38 | 592 | public function get(...$keys) |
|
| 39 | { |
||
| 40 | // configuration is missed |
||
| 41 | 592 | if (empty($this->container)) { |
|
| 42 | throw new ConfigException('System configuration is missing'); |
||
| 43 | } |
||
| 44 | |||
| 45 | 592 | if (!count($keys)) { |
|
| 46 | 2 | return $this->container; |
|
| 47 | } |
||
| 48 | |||
| 49 | 591 | return Collection::get($this->container, ...$keys); |
|
| 50 | } |
||
| 51 | } |
||
| 52 |
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