Add BC typehint #7873
Annotations
19 errors and 3 warnings
NoValue:
src/Security/Handler/AclSecurityHandler.php#L234
src/Security/Handler/AclSecurityHandler.php:234:42: NoValue: All possible types for this argument were invalidated - This may be dead code (see https://psalm.dev/179)
|
NoValue:
src/Security/Handler/AclSecurityHandler.php#L239
src/Security/Handler/AclSecurityHandler.php:239:38: NoValue: All possible types for this argument were invalidated - This may be dead code (see https://psalm.dev/179)
|
InvalidReturnType:
src/Security/Handler/AclSecurityHandler.php#L259
src/Security/Handler/AclSecurityHandler.php:259:86: InvalidReturnType: The declared return type 'false' for Sonata\AdminBundle\Security\Handler\AclSecurityHandler::findClassAceIndexByRole is incorrect, got 'false|int' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Security/Handler/AclSecurityHandler.php#L264
src/Security/Handler/AclSecurityHandler.php:264:24: InvalidReturnStatement: The inferred type 'int' does not match the declared return type 'false' for Sonata\AdminBundle\Security\Handler\AclSecurityHandler::findClassAceIndexByRole (see https://psalm.dev/128)
|
InvalidArgument:
src/Twig/Extension/BreadcrumbsExtension.php#L40
src/Twig/Extension/BreadcrumbsExtension.php:40:52: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Twig/Extension/BreadcrumbsExtension.php#L44
src/Twig/Extension/BreadcrumbsExtension.php:44:62: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Twig/Extension/CanonicalizeExtension.php#L38
src/Twig/Extension/CanonicalizeExtension.php:38:64: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Twig/Extension/CanonicalizeExtension.php#L39
src/Twig/Extension/CanonicalizeExtension.php:39:65: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Twig/Extension/GroupExtension.php#L43
src/Twig/Extension/GroupExtension.php:43:83: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Twig/Extension/IconExtension.php#L35
src/Twig/Extension/IconExtension.php:35:42: InvalidArgument: Argument 2 of Twig\TwigFilter::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
PHPStan:
src/Datagrid/DatagridMapper.php#L60
Method Sonata\AdminBundle\Datagrid\DatagridMapper::add() return type with generic class Sonata\AdminBundle\Datagrid\DatagridMapper does not specify its types: T
|
PHPStan:
src/Datagrid/ListMapper.php#L65
Method Sonata\AdminBundle\Datagrid\ListMapper::addIdentifier() return type with generic class Sonata\AdminBundle\Datagrid\ListMapper does not specify its types: T
|
PHPStan:
src/Datagrid/ListMapper.php#L79
Method Sonata\AdminBundle\Datagrid\ListMapper::add() return type with generic class Sonata\AdminBundle\Datagrid\ListMapper does not specify its types: T
|
PHPStan:
src/Security/Handler/AclSecurityHandler.php#L234
Parameter #1 $index of method Symfony\Component\Security\Acl\Model\MutableAclInterface::updateClassAce() expects int, true given.
|
PHPStan:
src/Security/Handler/AclSecurityHandler.php#L239
Parameter #1 $index of method Symfony\Component\Security\Acl\Model\MutableAclInterface::deleteClassAce() expects int, true given.
|
PHPStan:
src/Security/Handler/AclSecurityHandler.php#L259
Return type (bool) of method Sonata\AdminBundle\Security\Handler\AclSecurityHandler::findClassAceIndexByRole() should be covariant with return type (int|false) of method Sonata\AdminBundle\Security\Handler\AclSecurityHandlerInterface::findClassAceIndexByRole()
|
PHPStan:
src/Security/Handler/AclSecurityHandler.php#L264
Method Sonata\AdminBundle\Security\Handler\AclSecurityHandler::findClassAceIndexByRole() should return bool but returns int.
|
PHPStan:
src/Show/ShowMapper.php#L57
Method Sonata\AdminBundle\Show\ShowMapper::add() return type with generic class Sonata\AdminBundle\Show\ShowMapper does not specify its types: T
|
PHPStan
Process completed with exit code 1.
|
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Rector
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|