Skip to content

Commit 64dba66

Browse files
Fix deprecation
1 parent 0b9da26 commit 64dba66

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
@@ -2595,7 +2595,7 @@ public function getBitwiseNotTypeFromType(Type $exprType): Type
25952595
return TypeCombinator::intersect(...$accessories);
25962596
}
25972597
if ($type instanceof ConstantIntegerType || $type instanceof ConstantFloatType) {
2598-
return new ConstantIntegerType(~$type->getValue());
2598+
return new ConstantIntegerType(~ (int) $type->getValue());
25992599
}
26002600
if ($type->isInteger()->yes() || $type->isFloat()->yes()) {
26012601
return new IntegerType();

0 commit comments

Comments
 (0)