Refine routes list functionality #504
continuous-integration.yml
on: pull_request
ci
/
Generate job matrix
6s
Matrix: ci / QA Checks
Annotations
12 errors and 13 warnings
InvalidReturnType:
src/ConfigProvider.php#L66
src/ConfigProvider.php:66:16: InvalidReturnType: The declared return type 'array{factories: array<class-string, class-string>}' for Mezzio\Tooling\ConfigProvider::getDependencies is incorrect, got 'array{aliases: array{'Mezzio\\Tooling\\Routes\\ConfigLoaderInterface'::class: Mezzio\Tooling\Routes\RoutesFileConfigLoader::class}, factories: array{'Mezzio\\Tooling\\CreateHandler\\CreateActionCommand'::class: Mezzio\Tooling\CreateHandler\CreateActionCommandFactory::class, 'Mezzio\\Tooling\\CreateHandler\\CreateHandlerCommand'::class: Mezzio\Tooling\CreateHandler\CreateHandlerCommandFactory::class, 'Mezzio\\Tooling\\CreateMiddleware\\CreateMiddlewareCommand'::class: Mezzio\Tooling\CreateMiddleware\CreateMiddlewareCommandFactory::class, 'Mezzio\\Tooling\\Factory\\Create'::class: Mezzio\Tooling\Factory\CreateFactory::class, 'Mezzio\\Tooling\\Factory\\CreateFactoryCommand'::class: Mezzio\Tooling\Factory\CreateFactoryCommandFactory::class, 'Mezzio\\Tooling\\MigrateInteropMiddleware\\MigrateInteropMiddlewareCommand'::class: Mezzio\Tooling\MigrateInteropMiddleware\MigrateInteropMiddlewareCommandFactory::class, 'Mezzio\\Tooling\\MigrateMiddlewareToRequestHandler\\MigrateMiddlewareToRequestHandlerCommand'::class: Mezzio\Tooling\MigrateMiddlewareToRequestHandler\MigrateMiddlewareToRequestHandlerCommandFactory::class, 'Mezzio\\Tooling\\Module\\CreateCommand'::class: Mezzio\Tooling\Module\CreateCommandFactory::class, 'Mezzio\\Tooling\\Module\\DeregisterCommand'::class: Mezzio\Tooling\Module\DeregisterCommandFactory::class, 'Mezzio\\Tooling\\Module\\RegisterCommand'::class: Mezzio\Tooling\Module\RegisterCommandFactory::class, 'Mezzio\\Tooling\\Routes\\ListRoutesCommand'::class: Mezzio\Tooling\Routes\ListRoutesCommandFactory::class, 'Mezzio\\Tooling\\Routes\\RoutesFileConfigLoader'::class: Mezzio\Tooling\Routes\DefaultRoutesConfigLoaderFactory::class}}' which is different due to additional array shape fields (aliases) (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/ConfigProvider.php#L70
src/ConfigProvider.php:70:16: InvalidReturnStatement: The inferred type 'array{aliases: array{'Mezzio\\Tooling\\Routes\\ConfigLoaderInterface'::class: Mezzio\Tooling\Routes\RoutesFileConfigLoader::class}, factories: array{'Mezzio\\Tooling\\CreateHandler\\CreateActionCommand'::class: Mezzio\Tooling\CreateHandler\CreateActionCommandFactory::class, 'Mezzio\\Tooling\\CreateHandler\\CreateHandlerCommand'::class: Mezzio\Tooling\CreateHandler\CreateHandlerCommandFactory::class, 'Mezzio\\Tooling\\CreateMiddleware\\CreateMiddlewareCommand'::class: Mezzio\Tooling\CreateMiddleware\CreateMiddlewareCommandFactory::class, 'Mezzio\\Tooling\\Factory\\Create'::class: Mezzio\Tooling\Factory\CreateFactory::class, 'Mezzio\\Tooling\\Factory\\CreateFactoryCommand'::class: Mezzio\Tooling\Factory\CreateFactoryCommandFactory::class, 'Mezzio\\Tooling\\MigrateInteropMiddleware\\MigrateInteropMiddlewareCommand'::class: Mezzio\Tooling\MigrateInteropMiddleware\MigrateInteropMiddlewareCommandFactory::class, 'Mezzio\\Tooling\\MigrateMiddlewareToRequestHandler\\MigrateMiddlewareToRequestHandlerCommand'::class: Mezzio\Tooling\MigrateMiddlewareToRequestHandler\MigrateMiddlewareToRequestHandlerCommandFactory::class, 'Mezzio\\Tooling\\Module\\CreateCommand'::class: Mezzio\Tooling\Module\CreateCommandFactory::class, 'Mezzio\\Tooling\\Module\\DeregisterCommand'::class: Mezzio\Tooling\Module\DeregisterCommandFactory::class, 'Mezzio\\Tooling\\Module\\RegisterCommand'::class: Mezzio\Tooling\Module\RegisterCommandFactory::class, 'Mezzio\\Tooling\\Routes\\ListRoutesCommand'::class: Mezzio\Tooling\Routes\ListRoutesCommandFactory::class, 'Mezzio\\Tooling\\Routes\\RoutesFileConfigLoader'::class: Mezzio\Tooling\Routes\DefaultRoutesConfigLoaderFactory::class}}' does not match the declared return type 'array{factories: array<class-string, class-string>}' for Mezzio\Tooling\ConfigProvider::getDependencies due to additional array shape fields (aliases) (see https://psalm.dev/128)
|
LessSpecificImplementedReturnType:
src/Routes/Filter/RouteFilterOptions.php#L62
src/Routes/Filter/RouteFilterOptions.php:62:16: LessSpecificImplementedReturnType: The inherited return type 'list<string>' for Mezzio\Tooling\Routes\Filter\RouteFilterOptionsInterface::getMethods is more specific than the implemented return type for Mezzio\Tooling\Routes\Filter\RouteFilterOptions::getmethods 'array<array-key, string>' (see https://psalm.dev/166)
|
MixedReturnTypeCoercion:
src/Routes/Filter/RouteFilterOptions.php#L62
src/Routes/Filter/RouteFilterOptions.php:62:16: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for Mezzio\Tooling\Routes\Filter\RouteFilterOptions::getMethods is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/197)
|
MixedReturnTypeCoercion:
src/Routes/Filter/RouteFilterOptions.php#L66
src/Routes/Filter/RouteFilterOptions.php:66:16: MixedReturnTypeCoercion: The type 'array<array-key, mixed>' is more general than the declared return type 'array<array-key, string>' for Mezzio\Tooling\Routes\Filter\RouteFilterOptions::getMethods (see https://psalm.dev/197)
|
InvalidTemplateParam:
src/Routes/Filter/RoutesFilter.php#L28
src/Routes/Filter/RoutesFilter.php:28:13: InvalidTemplateParam: Extended template param TIterator expects type Traversable<mixed, mixed>, type TIterator:Mezzio\Tooling\Routes\Filter\RoutesFilter as Mezzio\Tooling\Routes\Filter\Iterator<TKey:Mezzio\Tooling\Routes\Filter\RoutesFilter as mixed, TValue:Mezzio\Tooling\Routes\Filter\RoutesFilter as mixed> given (see https://psalm.dev/183)
|
UndefinedClass:
src/Routes/Filter/RoutesFilter.php#L28
src/Routes/Filter/RoutesFilter.php:28:13: UndefinedClass: Class, interface or enum named Mezzio\Tooling\Routes\Filter\Iterator does not exist (see https://psalm.dev/019)
|
MismatchingDocblockPropertyType:
src/Routes/Filter/RoutesFilter.php#L32
src/Routes/Filter/RoutesFilter.php:32:15: MismatchingDocblockPropertyType: Parameter Mezzio\Tooling\Routes\Filter\RoutesFilter::$filterOptions has wrong type 'Mezzio\Tooling\Routes\Filter\RouteFilterOptionsInterface', should be 'Mezzio\Tooling\Routes\Filter\RouteFilterOptions' (see https://psalm.dev/264)
|
MismatchingDocblockParamType:
src/Routes/Filter/RoutesFilter.php#L32
src/Routes/Filter/RoutesFilter.php:32:15: MismatchingDocblockParamType: Parameter $filterOptions has wrong type 'Mezzio\Tooling\Routes\Filter\RouteFilterOptionsInterface', should be 'Mezzio\Tooling\Routes\Filter\RouteFilterOptions' (see https://psalm.dev/141)
|
PossiblyNullArgument:
src/Routes/Filter/RoutesFilter.php#L123
src/Routes/Filter/RoutesFilter.php:123:13: PossiblyNullArgument: Argument 2 of array_intersect cannot be null, possibly null value provided (see https://psalm.dev/078)
|
ci / QA Checks (README Linting [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...:
README.md#L77
Emphasis style [Expected: asterisk; Actual: underscore]
|
ci / QA Checks (README Linting [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...:
README.md#L77
Emphasis style [Expected: asterisk; Actual: underscore]
|
ci / Generate job matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.3, latest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.1, latest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.2, lowest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.4, lowest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (README Linting [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.3, lowest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.4, latest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci / QA Checks (PHPUnit [8.1, lowest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|