diff --git a/lib/mshoplib/src/MShop/Index/Manager/Standard.php b/lib/mshoplib/src/MShop/Index/Manager/Standard.php index 6f26572b77..f819cd31a6 100644 --- a/lib/mshoplib/src/MShop/Index/Manager/Standard.php +++ b/lib/mshoplib/src/MShop/Index/Manager/Standard.php @@ -287,7 +287,7 @@ public function rebuild( array $items = [] ) : \Aimeos\MShop\Index\Manager\Iface $catalogSearch->getConditions(), ); - if( !( $prodIds = map( $items)->getId() )->isEmpty() ) { // don't rely on array keys + if( !( $prodIds = map( $items )->getId() )->isEmpty() ) { // don't rely on array keys $expr[] = $catalogSearch->compare( '==', 'catalog.lists.refid', $prodIds->toArray() ); } diff --git a/lib/mshoplib/tests/MShop/Plugin/Provider/Order/ServicesUpdateTest.php b/lib/mshoplib/tests/MShop/Plugin/Provider/Order/ServicesUpdateTest.php index b811f51c6b..efff639f67 100644 --- a/lib/mshoplib/tests/MShop/Plugin/Provider/Order/ServicesUpdateTest.php +++ b/lib/mshoplib/tests/MShop/Plugin/Provider/Order/ServicesUpdateTest.php @@ -133,7 +133,7 @@ public function testUpdateNotAvailable() ->setMethods( ['isAvailable'] )->getMock(); $orderStub->expects( $this->once() )->method( 'getProducts' ) - ->will( $this->returnValue( map([$orderProduct] ) ) ); + ->will( $this->returnValue( map( [$orderProduct] ) ) ); $serviceStub->expects( $this->once() )->method( 'searchItems' ) ->will( $this->returnValue( map( [1 => $serviceItemDelivery, 2 => $serviceItemPayment] ) ) );