Skip to content

Commit 4831767

Browse files
committed
Apply review suggestions
1 parent 5885e6d commit 4831767

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Filter/Condition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string|array $column, mixed $value)
2727
/**
2828
* Clone this condition's meta data
2929
*/
30-
public function __clone(): void
30+
public function __clone()
3131
{
3232
if ($this->metaData !== null) {
3333
$this->metaData = clone $this->metaData;

src/Plugins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function wantPluginLoader(PluginLoader|string $loaderOrNamespace,
2323
if ($loaderOrNamespace instanceof PluginLoader) {
2424
$loader = $loaderOrNamespace;
2525
} else {
26-
$loader = new AutoloadingPluginLoader($loaderOrNamespace, $postfix ?? '');
26+
$loader = new AutoloadingPluginLoader($loaderOrNamespace, $postfix);
2727
}
2828

2929
return $loader;

src/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ function arrayval(array|object|null $subject): array
6161
*
6262
* @param iterable<mixed> $iterable
6363
*
64-
* @return mixed The first key of the iterable if it is not empty, null otherwise
64+
* @return int|string|null The first key of the iterable if it is not empty, null otherwise
6565
*/
66-
function iterable_key_first(iterable $iterable): mixed
66+
function iterable_key_first(iterable $iterable): int|string|null
6767
{
6868
foreach ($iterable as $key => $_) {
6969
return $key;

0 commit comments

Comments
 (0)