We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 044231b commit c6582bbCopy full SHA for c6582bb
1 file changed
tests/PHPStan/Reflection/ParameterAllowedConstantsTest.php
@@ -252,6 +252,7 @@ public function testBitmaskAllowedOnBitmaskParameter(): void
252
$function = $reflectionProvider->getFunction(new Name('json_encode'), null);
253
$flagsParam = $function->getVariants()[0]->getParameters()[1];
254
255
+ $this->assertNotNull($flagsParam->getAllowedConstants());
256
$this->assertTrue($flagsParam->getAllowedConstants()->isBitmask());
257
258
$prettyPrint = $reflectionProvider->getConstant(new Name('JSON_PRETTY_PRINT'), null);
0 commit comments