We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2806a commit 15f2b01Copy full SHA for 15f2b01
tests/PHPStan/Analyser/ExpressionResultTest.php
@@ -99,6 +99,34 @@ public static function dataIsAlwaysTerminating(): array
99
'exit() ?? $x;',
100
true,
101
],
102
+ [
103
+ 'var_dump(1+exit());',
104
+ true,
105
+ ],
106
107
+ 'var_dump(1-exit());',
108
109
110
111
+ 'var_dump(1*exit());',
112
113
114
115
+ 'var_dump(1**exit());',
116
117
118
119
+ 'var_dump(1/exit());',
120
121
122
123
+ 'var_dump("a".exit());',
124
125
126
127
+ 'var_dump(exit()."a");',
128
129
130
];
131
}
132
0 commit comments