Skip to content

Commit c6582bb

Browse files
committed
Fix
1 parent 044231b commit c6582bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/PHPStan/Reflection/ParameterAllowedConstantsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public function testBitmaskAllowedOnBitmaskParameter(): void
252252
$function = $reflectionProvider->getFunction(new Name('json_encode'), null);
253253
$flagsParam = $function->getVariants()[0]->getParameters()[1];
254254

255+
$this->assertNotNull($flagsParam->getAllowedConstants());
255256
$this->assertTrue($flagsParam->getAllowedConstants()->isBitmask());
256257

257258
$prettyPrint = $reflectionProvider->getConstant(new Name('JSON_PRETTY_PRINT'), null);

0 commit comments

Comments
 (0)