| Total Complexity | 9 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class InvalidArgumentException extends InvalidArgumentException { |
||
| 7 | |||
| 8 | public const ERROR_MESSAGE = 'The middleware is not a valid %s and is not passed in the Container. Given: %s'; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var mixed|null |
||
| 12 | */ |
||
| 13 | private $invalidMiddleware; |
||
| 14 | |||
| 15 | public function __construct( $invalidMiddleware = null, $code = 0, Throwable $previous = null ) |
||
| 16 | { |
||
| 17 | $message = \sprintf(self::ERROR_MESSAGE, MiddlewareInterface::class, $this->castStageToString($invalidMiddleware)); |
||
|
|
|||
| 18 | parent::__construct( $message, $code, $previous); |
||
| 19 | $this->invalidMiddleware = $invalidMiddleware; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * return the invalid middleware |
||
| 24 | * @return mixed|null |
||
| 25 | */ |
||
| 26 | public function getInvalidMiddleware(){ |
||
| 28 | } |
||
| 29 | private function castStageToString(string $stage) : string{ |
||
| 47 | } |
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