Skip to content

Commit

Permalink
Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
bumbummen99 committed Nov 29, 2024
1 parent f3ff970 commit 6c9afac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GameQ/Helpers/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function recursively(array $data, Closure $callback)
/* Wrap the implementation to handle PHP < 8.1 behaviour */
static::handleArrayIteratorCopyOrReference(
$data,
$recursiveIterator,
$recursiveIterator,
$subIterator,
/* Update the current value */
fn () => $subIterator->offsetSet(
Expand All @@ -82,9 +82,9 @@ public static function recursively(array $data, Closure $callback)
* @return void
*/
protected static function handleArrayIteratorCopyOrReference(
array &$data,
RecursiveIteratorIterator $recursiveIterator,
RecursiveArrayIterator $iterator,
array &$data,
RecursiveIteratorIterator $recursiveIterator,
RecursiveArrayIterator $iterator,
Closure $callback
) {
/* ArrayIterator before PHP 8.1 does use a copy instead of reference */
Expand Down

0 comments on commit 6c9afac

Please sign in to comment.