mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix phpcs
This commit is contained in:
parent
a7c9cf400e
commit
cecbceae41
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user