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}
*/
public static function afterClassLikeVisit(
ClassLike $class_node,
ClassLikeStorage $class_storage,
ClassLike $stmt,
ClassLikeStorage $storage,
FileSource $statements_source,
Codebase $codebase,
array &$file_replacements = []
) {
if (\in_array($class_storage->name, ContainerHandler::GET_CLASSLIKES)) {
if (\in_array($storage->name, ContainerHandler::GET_CLASSLIKES)) {
if (self::$containerMeta) {
$file_path = $statements_source->getFilePath();
$file_storage = $codebase->file_storage_provider->get($file_path);