File tree 1 file changed +1
-24
lines changed
1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -5078,30 +5078,7 @@ private function processAssignVar(
5078
5078
$ offsetNativeValueType = $ varNativeType ;
5079
5079
5080
5080
$ valueToWrite = $ this ->produceArrayDimFetchAssignValueToWrite ($ offsetTypes , $ offsetValueType , $ valueToWrite );
5081
-
5082
- $ nativeValueToWrite = $ valueToWrite ;
5083
- if (!$ offsetValueType ->equals ($ offsetNativeValueType ) || !$ valueToWrite ->equals ($ nativeValueToWrite )) {
5084
- $ nativeValueToWrite = $ this ->produceArrayDimFetchAssignValueToWrite ($ offsetNativeTypes , $ offsetNativeValueType , $ nativeValueToWrite );
5085
- } else {
5086
- foreach ($ offsetTypes as $ i => $ offsetType ) {
5087
- $ offsetNativeType = $ offsetNativeTypes [$ i ];
5088
- if ($ offsetType === null ) {
5089
- if ($ offsetNativeType !== null ) {
5090
- throw new ShouldNotHappenException ();
5091
- }
5092
-
5093
- continue ;
5094
- } elseif ($ offsetNativeType === null ) {
5095
- throw new ShouldNotHappenException ();
5096
- }
5097
- if ($ offsetType ->equals ($ offsetNativeType )) {
5098
- continue ;
5099
- }
5100
-
5101
- $ nativeValueToWrite = $ this ->produceArrayDimFetchAssignValueToWrite ($ offsetNativeTypes , $ offsetNativeValueType , $ nativeValueToWrite );
5102
- break ;
5103
- }
5104
- }
5081
+ $ nativeValueToWrite = $ this ->produceArrayDimFetchAssignValueToWrite ($ offsetNativeTypes , $ offsetNativeValueType , $ nativeValueToWrite );
5105
5082
5106
5083
if ($ varType ->isArray ()->yes () || !(new ObjectType (ArrayAccess::class))->isSuperTypeOf ($ varType )->yes ()) {
5107
5084
if ($ var instanceof Variable && is_string ($ var ->name )) {
You can’t perform that action at this time.
0 commit comments