Skip to content

Commit 4477c49

Browse files
Fix deprecation
1 parent 05b6a26 commit 4477c49

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
@@ -2160,7 +2160,7 @@ public function getBitwiseNotType(Expr $expr, callable $getTypeCallback): Type
21602160
return TypeCombinator::intersect(...$accessories);
21612161
}
21622162
if ($type instanceof ConstantIntegerType || $type instanceof ConstantFloatType) {
2163-
return new ConstantIntegerType(~$type->getValue());
2163+
return new ConstantIntegerType(~ (int) $type->getValue());
21642164
}
21652165
if ($type->isInteger()->yes() || $type->isFloat()->yes()) {
21662166
return new IntegerType();

0 commit comments

Comments
 (0)