| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public static function noAutoloadPsr4MatchFound(string $desiredNamespace, array $knownPsr4 = []): self |
||
| 27 | { |
||
| 28 | $parsedKnownPsr4 = array_map( |
||
| 29 | static fn (string $p): string => str_replace('\\', '', $p), |
||
| 30 | $knownPsr4, |
||
| 31 | ); |
||
| 32 | |||
| 33 | return new self( |
||
| 34 | sprintf( |
||
| 35 | 'No autoload psr-4 match found for %s. Known PSR-4: %s', |
||
| 36 | $desiredNamespace, |
||
| 37 | implode(', ', $parsedKnownPsr4), |
||
| 38 | ), |
||
| 42 |