| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 15 | public static function withExpectedExtension(string $filePath, string $expectedExtension): OutputFilePath |
||
| 16 | { |
||
| 17 | $path = new SplFileInfo(trim($filePath)); |
||
| 18 | $extension = $path->getExtension(); |
||
| 19 | Assert::eq( |
||
| 20 | $extension, |
||
| 21 | $expectedExtension, |
||
| 22 | "Output file is expected to have extension '.{$expectedExtension}', '.{$extension}' given" |
||
| 23 | ); |
||
| 24 | |||
| 25 | return new OutputFilePath($path); |
||
| 26 | } |
||
| 37 |
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