mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
parent
211f014356
commit
9bfe50b20a
@ -861,6 +861,7 @@ class ArgumentsAnalyzer
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\MethodCall
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\StaticCall
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\New_
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\Cast
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\Assign
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\ArrayDimFetch
|
||||
|| $arg->value instanceof PhpParser\Node\Expr\PropertyFetch
|
||||
|
@ -334,6 +334,12 @@ class ToStringTest extends TestCase
|
||||
}',
|
||||
'error_message' => 'InvalidCast',
|
||||
],
|
||||
'alwaysEvaluateToStringVar' => [
|
||||
'<?php
|
||||
/** @psalm-suppress UndefinedFunction */
|
||||
fora((string) $address);',
|
||||
'error_message' => 'UndefinedGlobalVariable',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user