Skip to content

Refine routes list functionality #504

Refine routes list functionality

Refine routes list functionality #504

Triggered via pull request December 19, 2024 04:25
Status Failure
Total duration 59s
Artifacts

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
6s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

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 / Generate job matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636