diff --git a/composer.json b/composer.json index 7d0dbde..24ce24a 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,8 @@ "illuminate/support": "^8.71|^9.0" }, "require-dev": { - "amphp/parallel": "^0.2.5", - "amphp/parallel-functions": "^0.1.3", + "amphp/parallel": "^1.4.1", + "amphp/parallel-functions": "^1.1.0", "mockery/mockery": "^1.4.2", "orchestra/testbench": "^6.23|^7.0", "phpunit/phpunit": "^9.4.4", @@ -63,4 +63,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file diff --git a/tests/Macros/PluckManyTest.php b/tests/Macros/PluckManyTest.php index 823129b..249ea7c 100644 --- a/tests/Macros/PluckManyTest.php +++ b/tests/Macros/PluckManyTest.php @@ -35,9 +35,9 @@ public function it_can_pluck_from_array_and_object_items() $this->assertEquals( [ - (object) ['name' => 'matt', 'hobby' => 'coding'], - ['name' => 'tomo', 'hobby' => 'cooking'], - ], + (object) ['name' => 'matt', 'hobby' => 'coding'], + ['name' => 'tomo', 'hobby' => 'cooking'], + ], $data->pluckMany(['name', 'hobby'])->all() ); } @@ -52,9 +52,9 @@ public function it_can_pluck_from_objects_that_implement_array_access_interface( $this->assertEquals( [ - ['name' => 'marco', 'hobby' => 'drinking'], - ['name' => 'belle', 'hobby' => 'cross-stitch'], - ], + ['name' => 'marco', 'hobby' => 'drinking'], + ['name' => 'belle', 'hobby' => 'cross-stitch'], + ], $data->pluckMany(['name', 'hobby'])->all() ); } @@ -69,22 +69,22 @@ public function __construct($arr) $this->arr = $arr; } - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->arr[$offset]); } - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->arr[$offset]; } - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { $this->arr[$offset] = $value; } - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->arr[$offset]); }