fix arrayFilter helper function
All checks were successful
/ ls (push) Successful in 24s

This commit is contained in:
lubiana 2023-11-30 21:14:17 +01:00
parent 4910317c38
commit 28491fd4ea
4 changed files with 1240 additions and 1315 deletions

View file

@ -17,18 +17,18 @@
"require": {
"php": ">=8.3",
"ext-apcu": "*",
"php-di/php-di": "^7.0.1",
"php-di/php-di": "^7.0.6",
"nikic/fast-route": "^1.3",
"symfony/http-foundation": "^6.2.5",
"vimeo/psalm": "^5.6"
"symfony/http-foundation": "^7.0"
},
"require-dev": {
"phpstan/phpstan": "^1.9.14",
"lubiana/code-quality": "^1.1",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan-strict-rules": "^1.4.5",
"phpstan/phpstan": "^1.10.46",
"lubiana/code-quality": "^1.2",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan-strict-rules": "^1.5.2",
"thecodingmachine/phpstan-strict-rules": "^1.0",
"pmjones/php-styler": "0.x-dev"
"pmjones/php-styler": "^0.14.0",
"vimeo/psalm": "^5.16"
},
"config": {
"allow-plugins": {

2526
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,13 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.6.0@e784128902dfe01d489c4123d69918a9f3c1eac5">
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
<file src="src/Infrastructure/Finder.php">
<UnresolvableInclude>
<code>require_once (string) $file</code>
</UnresolvableInclude>
</file>
<file src="src/Infrastructure/functions.php">
<MixedArgumentTypeCoercion>
<code>$callable</code>
</MixedArgumentTypeCoercion>
</file>
</files>

View file

@ -7,9 +7,9 @@ use function array_values;
/**
* @template T
* @param array<T> $input
* @param callable(mixed, mixed=):scalar $callable
* @return array<int, T>
* @param T[] $input
* @param callable(T):bool $callable
* @return T[]
*/
function arrayFilter(array $input, callable $callable): array
{