Fixed named arguments in ContainerHandler.php for Psalm 3.14 (#73)

This commit is contained in:
Valentin Udaltsov 2020-08-18 09:02:44 +03:00 committed by GitHub
parent 798b72f40c
commit 942397d1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,13 +125,13 @@ class ContainerHandler implements AfterMethodCallAnalysisInterface, AfterClassLi
* {@inheritdoc} * {@inheritdoc}
*/ */
public static function afterClassLikeVisit( public static function afterClassLikeVisit(
ClassLike $class_node, ClassLike $stmt,
ClassLikeStorage $class_storage, ClassLikeStorage $storage,
FileSource $statements_source, FileSource $statements_source,
Codebase $codebase, Codebase $codebase,
array &$file_replacements = [] array &$file_replacements = []
) { ) {
if (\in_array($class_storage->name, ContainerHandler::GET_CLASSLIKES)) { if (\in_array($storage->name, ContainerHandler::GET_CLASSLIKES)) {
if (self::$containerMeta) { if (self::$containerMeta) {
$file_path = $statements_source->getFilePath(); $file_path = $statements_source->getFilePath();
$file_storage = $codebase->file_storage_provider->get($file_path); $file_storage = $codebase->file_storage_provider->get($file_path);