mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
replace > by @
This commit is contained in:
parent
059eb5e29d
commit
5f764b9d8f
@ -93,7 +93,7 @@ class AssertionFinder
|
||||
|
||||
if ($var_name) {
|
||||
if ($candidate_if_types) {
|
||||
$if_types[$var_name] = [['&' . \json_encode($candidate_if_types[0])]];
|
||||
$if_types[$var_name] = [['@' . \json_encode($candidate_if_types[0])]];
|
||||
} else {
|
||||
$if_types[$var_name] = [['!falsy']];
|
||||
}
|
||||
|
@ -162,9 +162,9 @@ class Reconciler
|
||||
$orred_type = null;
|
||||
|
||||
foreach ($new_type_part_parts as $new_type_part_part) {
|
||||
if ($new_type_part_part[0] === '>'
|
||||
if ($new_type_part_part[0] === '@'
|
||||
|| ($new_type_part_part[0] === '!'
|
||||
&& $new_type_part_part[1] === '>')
|
||||
&& $new_type_part_part[1] === '@')
|
||||
) {
|
||||
if ($new_type_part_part[0] === '!') {
|
||||
$nested_negated = !$negated;
|
||||
|
Loading…
x
Reference in New Issue
Block a user