Refine routes list functionality #504
Annotations
10 errors and 1 warning
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
Psalm [8.1, locked]:
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)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading