Skip to content

Commit

Permalink
Merge a96384b into ba9f740
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Mar 13, 2023
2 parents ba9f740 + a96384b commit e63c770
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Arrayy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4092,7 +4092,6 @@ public function keys(
$search_values = null,
bool $strict = true
): self {

// recursive

if ($recursive === true) {
Expand Down
1 change: 0 additions & 1 deletion src/ArrayyMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

final class ArrayyMeta
{

/** @noinspection MagicMethodsValidityInspection */

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

namespace {

if (\PHP_VERSION_ID < 70300) {
if (!\function_exists('is_countable')) {
/**
Expand Down Expand Up @@ -57,11 +56,9 @@ function array_key_last(array $array)
}
}
}

}

namespace Arrayy {

use Arrayy\Collection\Collection;
use Arrayy\TypeCheck\TypeCheckArray;
use Arrayy\TypeCheck\TypeCheckInterface;
Expand Down Expand Up @@ -143,5 +140,4 @@ function array_first(array $array, $fallback = null)

return $array[$key_first];
}

}
2 changes: 1 addition & 1 deletion src/Type/DetectFirstValueTypeCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Arrayy\Type;

use function Arrayy\array_first;
use Arrayy\Arrayy;
use Arrayy\ArrayyIterator;
use Arrayy\Collection\Collection;
use function Arrayy\array_first;

/**
* @template TKey of array-key
Expand Down
4 changes: 2 additions & 2 deletions tests/BasicArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Arrayy\tests;

use function Arrayy\array_first;
use function Arrayy\array_last;
use Arrayy\Arrayy;
use Arrayy\Arrayy as A;
use Arrayy\ArrayyIterator;
use function Arrayy\array_first;
use function Arrayy\array_last;

/**
* Copy of a test class from "https://github.com/bocharsky-bw/Arrayzy/"
Expand Down
2 changes: 1 addition & 1 deletion tests/Collection/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Arrayy\tests\Collection;

use function Arrayy\collection;
use Arrayy\Collection\Collection;
use Arrayy\tests\CityData;
use Arrayy\tests\ModelA;
use Arrayy\tests\ModelB;
use Arrayy\tests\ModelC;
use Arrayy\tests\ModelD;
use Arrayy\tests\ModelInterface;
use function Arrayy\collection;

/**
* @internal
Expand Down

0 comments on commit e63c770

Please sign in to comment.