Fix: more precise tests #41
Annotations
10 errors and 11 warnings
PossiblyUnusedMethod:
src/Business/Route/RouteBuilderInterface.php#L26
src/Business/Route/RouteBuilderInterface.php:26:21: PossiblyUnusedMethod: Cannot find any calls to method Micro\Plugin\Http\Business\Route\RouteBuilderInterface::setName (see https://psalm.dev/087)
|
PossiblyUnusedReturnValue:
src/Business/Route/RouteBuilderInterface.php#L31
src/Business/Route/RouteBuilderInterface.php:31:16: PossiblyUnusedReturnValue: The return value for this method is never used (see https://psalm.dev/273)
|
PossiblyUnusedMethod:
src/Business/Route/RouteBuilderInterface.php#L42
src/Business/Route/RouteBuilderInterface.php:42:21: PossiblyUnusedMethod: Cannot find any calls to method Micro\Plugin\Http\Business\Route\RouteBuilderInterface::setMethods (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
src/Business/Route/RouteBuilderInterface.php#L49
src/Business/Route/RouteBuilderInterface.php:49:21: PossiblyUnusedMethod: Cannot find any calls to method Micro\Plugin\Http\Business\Route\RouteBuilderInterface::setController (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
src/Business/Route/RouteBuilderInterface.php#L54
src/Business/Route/RouteBuilderInterface.php:54:21: PossiblyUnusedMethod: Cannot find any calls to method Micro\Plugin\Http\Business\Route\RouteBuilderInterface::setUri (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
src/Business/Route/RouteBuilderInterface.php#L59
src/Business/Route/RouteBuilderInterface.php:59:21: PossiblyUnusedMethod: Cannot find any calls to method Micro\Plugin\Http\Business\Route\RouteBuilderInterface::build (see https://psalm.dev/087)
|
PossiblyUnusedReturnValue:
src/Business/Route/RouteCollectionInterface.php#L27
src/Business/Route/RouteCollectionInterface.php:27:16: PossiblyUnusedReturnValue: The return value for this method is never used (see https://psalm.dev/273)
|
PossiblyUnusedReturnValue:
src/Business/Route/RouteCollectionInterface.php#L34
src/Business/Route/RouteCollectionInterface.php:34:16: PossiblyUnusedReturnValue: The return value for this method is never used (see https://psalm.dev/273)
|
PossiblyUnusedMethod:
src/Business/Route/RouteCollectionInterface.php#L48
src/Business/Route/RouteCollectionInterface.php:48:21: PossiblyUnusedMethod: Cannot find any calls to method Micro\Plugin\Http\Business\Route\RouteCollectionInterface::getRoutes (see https://psalm.dev/087)
|
UnusedClass:
src/Exception/HttpBadRequestException.php#L19
src/Exception/HttpBadRequestException.php:19:7: UnusedClass: Class Micro\Plugin\Http\Exception\HttpBadRequestException is never used (see https://psalm.dev/075)
|
Tests 8.2 deps highest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
MixedAssignment:
src/Business/Executor/RouteExecutor.php#L48
src/Business/Executor/RouteExecutor.php:48:13: MixedAssignment: Unable to determine the type that $response is being assigned to (see https://psalm.dev/032)
|
MixedAssignment:
src/Business/Generator/UrlGenerator.php#L45
src/Business/Generator/UrlGenerator.php:45:41: MixedAssignment: Unable to determine the type that $value is being assigned to (see https://psalm.dev/032)
|
MixedArgument:
src/Business/Generator/UrlGenerator.php#L46
src/Business/Generator/UrlGenerator.php:46:55: MixedArgument: Argument 2 of str_replace cannot be mixed, expecting array<array-key, float|int|string>|string (see https://psalm.dev/030)
|
MixedAssignment:
src/Business/Response/Callback/ResponseCallback.php#L69
src/Business/Response/Callback/ResponseCallback.php:69:13: MixedAssignment: Unable to determine the type that $classController is being assigned to (see https://psalm.dev/032)
|
MixedArgumentTypeCoercion:
src/Business/Response/Callback/ResponseCallback.php#L69
src/Business/Response/Callback/ResponseCallback.php:69:64: MixedArgumentTypeCoercion: Argument 1 of Micro\Component\DependencyInjection\Autowire\AutowireHelperInterface::autowire expects array<array-key, object|string>|callable|class-string, but parent type array<class-string, null|string>|class-string|non-falsy-string provided (see https://psalm.dev/194)
|
MixedReturnTypeCoercion:
src/Business/Route/Route.php#L57
src/Business/Route/Route.php:57:35: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for Micro\Plugin\Http\Business\Route\Route::getMethods is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/197)
|
MixedReturnTypeCoercion:
src/Business/Route/Route.php#L59
src/Business/Route/Route.php:59:16: MixedReturnTypeCoercion: The type 'array<array-key, mixed>' is more general than the declared return type 'array<array-key, string>' for Micro\Plugin\Http\Business\Route\Route::getMethods (see https://psalm.dev/197)
|
MixedReturnTypeCoercion:
src/Business/Route/Route.php#L81
src/Business/Route/Route.php:81:38: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>|null' for Micro\Plugin\Http\Business\Route\Route::getParameters is more specific than the inferred return type 'array<array-key, mixed>|null' (see https://psalm.dev/197)
|
MixedReturnTypeCoercion:
src/Business/Route/Route.php#L83
src/Business/Route/Route.php:83:16: MixedReturnTypeCoercion: The type 'array<array-key, mixed>|null' is more general than the declared return type 'array<array-key, string>|null' for Micro\Plugin\Http\Business\Route\Route::getParameters (see https://psalm.dev/197)
|
MixedInferredReturnType:
src/HttpCorePluginConfiguration.php#L30
src/HttpCorePluginConfiguration.php:30:44: MixedInferredReturnType: Could not verify return type 'string' for Micro\Plugin\Http\HttpCorePluginConfiguration::getRouteLocatorType (see https://psalm.dev/047)
|