diff --git a/src/Psalm/Config.php b/src/Psalm/Config.php index e897ed8f9f9..5e276f218c7 100644 --- a/src/Psalm/Config.php +++ b/src/Psalm/Config.php @@ -1336,7 +1336,7 @@ public function processPluginFileExtensions(ProjectAnalyzer $projectAnalyzer): v } catch (Throwable $t) { throw new ConfigException( 'Failed to process plugin file extensions ' . $pluginClassName, - 1635800581, + 1_635_800_581, $t ); } @@ -1379,7 +1379,7 @@ public function initializePlugins(ProjectAnalyzer $project_analyzer): void } catch (Throwable $t) { throw new ConfigException( 'Failed to invoke plugin ' . $plugin_class_name, - 1635800582, + 1_635_800_582, $t ); } @@ -1446,11 +1446,11 @@ private function loadPlugin(ProjectAnalyzer $projectAnalyzer, string $pluginClas self::requirePath($pluginclas_class_path); } else { if (!class_exists($pluginClassName)) { - throw new \UnexpectedValueException($pluginClassName . ' is not a known class'); + throw new UnexpectedValueException($pluginClassName . ' is not a known class'); } } if (!is_a($pluginClassName, PluginInterface::class, true)) { - throw new \UnexpectedValueException($pluginClassName . ' is not a PluginInterface implementation'); + throw new UnexpectedValueException($pluginClassName . ' is not a PluginInterface implementation'); } $this->plugins[$pluginClassName] = new $pluginClassName; $projectAnalyzer->progress->debug('Loaded plugin ' . $pluginClassName . PHP_EOL); diff --git a/src/Psalm/Plugin/FileExtensionsInterface.php b/src/Psalm/Plugin/FileExtensionsInterface.php index 2f762cc5a91..c23b3b98876 100644 --- a/src/Psalm/Plugin/FileExtensionsInterface.php +++ b/src/Psalm/Plugin/FileExtensionsInterface.php @@ -1,4 +1,5 @@ config->getFiletypeScanners()[$fileExtension]) @@ -62,7 +63,7 @@ public function addFileTypeScanner(string $fileExtension, string $className): vo ) { throw new LogicException( sprintf('Cannot redeclare scanner for file-type %s', $fileExtension), - 1622727272 + 1_622_727_272 ); } $this->additionalFileTypeScanners[$fileExtension] = $className; @@ -90,7 +91,7 @@ public function addFileTypeAnalyzer(string $fileExtension, string $className): v $className, FileAnalyzer::class ), - 1622727281 + 1_622_727_281 ); } if (!empty($this->config->getFiletypeAnalyzers()[$fileExtension]) @@ -98,7 +99,7 @@ public function addFileTypeAnalyzer(string $fileExtension, string $className): v ) { throw new LogicException( sprintf('Cannot redeclare analyzer for file-type %s', $fileExtension), - 1622727282 + 1_622_727_282 ); } $this->additionalFileTypeAnalyzers[$fileExtension] = $className;