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 9140df5 commit cebec02Copy full SHA for cebec02
tests/PHPStan/Analyser/TypeSpecifierTest.php
@@ -1103,7 +1103,7 @@ public static function dataCondition(): iterable
1103
]),
1104
)),
1105
[
1106
- '$array' => "array<mixed~'foo', mixed> & ~hasOffset('bar')|hasOffset('foo')",
+ '$array' => PHP_VERSION_ID < 80000 ? '~hasOffset(\'bar\')|hasOffset(\'foo\')' : "array<mixed~'foo', mixed> & ~hasOffset('bar')|hasOffset('foo')",
1107
],
1108
1109
'$array' => 'non-empty-array',
@@ -1118,7 +1118,7 @@ public static function dataCondition(): iterable
1118
'$array' => 'non-empty-array&hasOffset(\'foo\')',
1119
1120
1121
- '$array' => "array<mixed~'foo', mixed> & ~hasOffset('foo')",
+ '$array' => PHP_VERSION_ID < 80000 ? '~hasOffset(\'foo\')' : "array<mixed~'foo', mixed> & ~hasOffset('foo')",
1122
1123
1124
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments