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 47ff106 commit 321d004Copy full SHA for 321d004
src/Reflection/InitializerExprTypeResolver.php
@@ -2631,7 +2631,7 @@ public function getBitwiseNotTypeFromType(Type $exprType): Type
2631
return TypeCombinator::intersect(...$accessories);
2632
}
2633
if ($type instanceof ConstantIntegerType || $type instanceof ConstantFloatType) {
2634
- return new ConstantIntegerType(~$type->getValue());
+ return new ConstantIntegerType(~ (int) $type->getValue());
2635
2636
if ($type->isInteger()->yes() || $type->isFloat()->yes()) {
2637
return new IntegerType();
0 commit comments