diff --git a/src/Select.php b/src/Select.php index aad61c58..7c98a325 100644 --- a/src/Select.php +++ b/src/Select.php @@ -130,7 +130,7 @@ public function __clone() /** * Create new Selector with applied scope. By default no scope used. * - * @return Select + * @return static */ public function scope(ScopeInterface $scope = null): self { @@ -160,7 +160,7 @@ public function buildQuery(): SelectQuery * * @psalm-param string|int|list|object ...$ids * - * @return Select + * @return static */ public function wherePK(string|int|array|object ...$ids): self { @@ -195,7 +195,7 @@ public function count(string $column = null): int } /** - * @return Select + * @return static */ public function limit(int $limit): self { @@ -205,7 +205,7 @@ public function limit(int $limit): self } /** - * @return Select + * @return static */ public function offset(int $offset): self { @@ -267,7 +267,7 @@ public function offset(int $offset): self * * @see with() * - * @return Select + * @return static */ public function load(string|array $relation, array $options = []): self { @@ -357,7 +357,7 @@ public function load(string|array $relation, array $options = []): self * * @see load() * - * @return Select + * @return static */ public function with(string|array $relation, array $options = []): self { @@ -465,7 +465,7 @@ public function loadSubclasses(bool $load = true): self * @param list $pk * @param list $args * - * @return Select + * @return static */ private function buildCompositePKQuery(array $pk, array $args): self { @@ -481,7 +481,7 @@ private function buildCompositePKQuery(array $pk, array $args): self ); } - $isAssoc = !array_is_list($values); + $isAssoc = !\array_is_list($values); foreach ($values as $key => $value) { if ($isAssoc && !\in_array($key, $pk, true)) { throw new InvalidArgumentException(\sprintf('Primary key `%s` not found.', $key));