| @@ -199,10 +199,9 @@ | ||
| 199 | 199 | * @param class-string<IReader> $readerClass |
| 200 | 200 | */ |
| 201 | 201 | public static function registerReader(string $readerType, string $readerClass): void |
| 202 | 202 | { |
| 203 | - // We want phpstan to validate caller, but still need this test | |
| 204 | - if (!is_a($readerClass, IReader::class, true)) { //* @phpstan-ignore-line | |
| 203 | + if (!is_a($readerClass, IReader::class, true)) { | |
| 205 | 204 | throw new Reader\Exception('Registered readers must implement ' . IReader::class); |
| 206 | 205 | } |
| 207 | 206 | |
| 208 | 207 | self::$readers[$readerType] = $readerClass; |