Skip to content

Commit 321d004

Browse files
Fix deprecation
1 parent 47ff106 commit 321d004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reflection/InitializerExprTypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2631,7 +2631,7 @@ public function getBitwiseNotTypeFromType(Type $exprType): Type
26312631
return TypeCombinator::intersect(...$accessories);
26322632
}
26332633
if ($type instanceof ConstantIntegerType || $type instanceof ConstantFloatType) {
2634-
return new ConstantIntegerType(~$type->getValue());
2634+
return new ConstantIntegerType(~ (int) $type->getValue());
26352635
}
26362636
if ($type->isInteger()->yes() || $type->isFloat()->yes()) {
26372637
return new IntegerType();

0 commit comments

Comments
 (0)