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 0b9da26 commit 64dba66Copy full SHA for 64dba66
src/Reflection/InitializerExprTypeResolver.php
@@ -2595,7 +2595,7 @@ public function getBitwiseNotTypeFromType(Type $exprType): Type
2595
return TypeCombinator::intersect(...$accessories);
2596
}
2597
if ($type instanceof ConstantIntegerType || $type instanceof ConstantFloatType) {
2598
- return new ConstantIntegerType(~$type->getValue());
+ return new ConstantIntegerType(~ (int) $type->getValue());
2599
2600
if ($type->isInteger()->yes() || $type->isFloat()->yes()) {
2601
return new IntegerType();
0 commit comments