From cecbceae4134ac26bb588cb2d6ab8902a8c10464 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Wed, 16 Dec 2020 12:12:26 -0500 Subject: [PATCH] Fix phpcs --- src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php b/src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php index 30492788c..75e7101d3 100644 --- a/src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php +++ b/src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php @@ -581,10 +581,10 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements FileSour if (strpos($docblock_issue->code_location->file_path, 'CoreGenericFunctions.phpstub') || strpos($docblock_issue->code_location->file_path, 'CoreGenericClasses.phpstub') ) { - $e = reset($functionlike_node_scanner->storage->docblock_issues); + $e = \reset($functionlike_node_scanner->storage->docblock_issues); - $fqcn_parts = explode('\\', get_class($e)); - $issue_type = array_pop($fqcn_parts); + $fqcn_parts = \explode('\\', \get_class($e)); + $issue_type = \array_pop($fqcn_parts); $message = $e instanceof \Psalm\Issue\TaintedInput ? $e->getJourneyMessage()