1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix phpcs

This commit is contained in:
Matt Brown 2020-12-16 12:12:26 -05:00 committed by Daniil Gentili
parent a7c9cf400e
commit cecbceae41
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -581,10 +581,10 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements FileSour
if (strpos($docblock_issue->code_location->file_path, 'CoreGenericFunctions.phpstub') if (strpos($docblock_issue->code_location->file_path, 'CoreGenericFunctions.phpstub')
|| strpos($docblock_issue->code_location->file_path, 'CoreGenericClasses.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)); $fqcn_parts = \explode('\\', \get_class($e));
$issue_type = array_pop($fqcn_parts); $issue_type = \array_pop($fqcn_parts);
$message = $e instanceof \Psalm\Issue\TaintedInput $message = $e instanceof \Psalm\Issue\TaintedInput
? $e->getJourneyMessage() ? $e->getJourneyMessage()