Skip to content

Commit bd1baf6

Browse files
committed
Fix PHP 5.3 weirdness
1 parent 3975f54 commit bd1baf6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ByPropertyIdArrayNew.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ private function addtoFlatArray( PropertyIdProvider $propertyIdProvider, $index
200200
* @return PropertyIdProvider
201201
*/
202202
private function removeFromFlatArray( $index ) {
203-
return array_splice( $this->flatArray, $index, 1 )[0];
203+
$objects = array_splice( $this->flatArray, $index, 1 );
204+
return $objects[0];
204205
}
205206

206207
/**

0 commit comments

Comments
 (0)