style: upgrade mago and apply formatting #2560
coding-conventions.yml
on: pull_request
Run style check
30s
Annotations
4 errors
|
Run style check
Process completed with exit code 1.
|
|
less-specific-return-statement:
packages/view/src/Renderers/ViewRendererInitializer.php#L20
Returned type `'TClassName.tempest\container\container::get() extends object|null` is less specific than the declared return type `Tempest\View\ViewRenderer` for function `tempest\view\renderers\viewrendererinitializer::initialize`.
The inferred type `'TClassName.tempest\container\container::get() extends object|null` could be assigned to the declared type `Tempest\View\ViewRenderer`, but is wider (less specific).
Help: Consider returning a value that more precisely matches the declared `Tempest\View\ViewRenderer` type, or adjust the function's return type declaration if the broader type is intended.
|
|
less-specific-return-statement:
packages/command-bus/src/CommandRepositoryInitializer.php#L18
Returned type `'TClassName.tempest\container\container::get() extends object|null` is less specific than the declared return type `Tempest\CommandBus\CommandRepository` for function `tempest\commandbus\commandrepositoryinitializer::initialize`.
The inferred type `'TClassName.tempest\container\container::get() extends object|null` could be assigned to the declared type `Tempest\CommandBus\CommandRepository`, but is wider (less specific).
Help: Consider returning a value that more precisely matches the declared `Tempest\CommandBus\CommandRepository` type, or adjust the function's return type declaration if the broader type is intended.
|
|
less-specific-return-statement:
packages/cache/src/Config/CustomCacheConfig.php#L32
Returned type `'TClassName.tempest\container\container::get() extends object|null` is less specific than the declared return type `Symfony\Component\Cache\Adapter\AdapterInterface` for function `tempest\cache\config\customcacheconfig::createadapter`.
The inferred type `'TClassName.tempest\container\container::get() extends object|null` could be assigned to the declared type `Symfony\Component\Cache\Adapter\AdapterInterface`, but is wider (less specific).
Help: Consider returning a value that more precisely matches the declared `Symfony\Component\Cache\Adapter\AdapterInterface` type, or adjust the function's return type declaration if the broader type is intended.
|