We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5a21c commit 2533e55Copy full SHA for 2533e55
src/ClassLoader.php
@@ -132,7 +132,7 @@ function addClassMap(array $classMap): void
132
*/
133
function addPrefix(string $prefix, $paths, int $type = self::PSR4): void
134
{
135
- if (static::PSR4 !== $type && static::PSR0 !== $type) {
+ if ($type !== static::PSR4 && $type !== static::PSR0) {
136
throw new \UnexpectedValueException('Invalid prefix type');
137
}
138
0 commit comments