File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2640,7 +2640,7 @@ static function (): void {
2640
2640
$ hasCountExpr = $ scope ->hasExpressionType ($ countArrayExpr )->yes ();
2641
2641
if ($ hasCountExpr ) {
2642
2642
$ countType = $ scope ->getType (new BinaryOp \Minus ($ countArrayExpr , new Int_ (1 )));
2643
- $ countNativeType = $ scope ->getType (new BinaryOp \Minus ($ countArrayExpr , new Int_ (1 )));
2643
+ $ countNativeType = $ scope ->getNativeType (new BinaryOp \Minus ($ countArrayExpr , new Int_ (1 )));
2644
2644
}
2645
2645
2646
2646
$ isArrayPop = $ functionReflection ->getName () === 'array_pop ' ;
@@ -2681,7 +2681,7 @@ static function (): void {
2681
2681
$ hasCountExpr = $ scope ->hasExpressionType ($ countArrayExpr )->yes ();
2682
2682
if ($ hasCountExpr && $ addedElementsCount !== null ) {
2683
2683
$ countType = $ scope ->getType (new BinaryOp \Plus ($ countArrayExpr , new Int_ ($ addedElementsCount )));
2684
- $ countNativeType = $ scope ->getType (new BinaryOp \Plus ($ countArrayExpr , new Int_ ($ addedElementsCount )));
2684
+ $ countNativeType = $ scope ->getNativeType (new BinaryOp \Plus ($ countArrayExpr , new Int_ ($ addedElementsCount )));
2685
2685
} else {
2686
2686
$ countType = IntegerRangeType::fromInterval ($ addedElementsCount , null );
2687
2687
$ countNativeType = IntegerRangeType::fromInterval ($ addedElementsCount , null );
You can’t perform that action at this time.
0 commit comments