minor #15571 Resolve psalm issues (Wojdylak)

This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | N/A
| License         | MIT


Commits
-------
  Resolve psalm issues
  Resolve phpstan issues
This commit is contained in:
Jacob Tobiasz 2023-11-29 16:34:44 +01:00 committed by GitHub
commit f20d671bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -4490,6 +4490,11 @@ parameters:
count: 1
path: src/Sylius/Bundle/UserBundle/Form/UserVerifiedAtToBooleanTransformer.php
-
message: "#^Interface Sylius\\\\Bundle\\\\UserBundle\\\\Provider\\\\UserProviderInterface extends generic interface Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserProviderInterface but does not specify its types\\: TUser$#"
count: 1
path: src/Sylius/Bundle/UserBundle/Provider/UserProviderInterface.php
-
message: "#^Method Sylius\\\\Bundle\\\\UserBundle\\\\Provider\\\\AbstractUserProvider\\:\\:loadUserByUsername\\(\\) has parameter \\$username with no type specified\\.$#"
count: 1

View file

@ -45,6 +45,7 @@
<referencedClass name="Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler" /> <!-- deprecated in Symfony 5.1 -->
<referencedClass name="Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface" /> <!-- deprecated in Symfony 6.3 -->
<referencedClass name="Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface" /> <!-- deprecated in Symfony 6.1, probably a bug in psalm, as this is referenced as DeprecatedClass, not an interface -->
<referencedClass name="Symfony\Component\Templating\Helper\Helper" /> <!-- deprecated in Symfony 6.4 -->
</errorLevel>
</DeprecatedClass>
<DeprecatedInterface>
@ -52,6 +53,7 @@
<referencedClass name="ApiPlatform\Core\Api\IriConverterInterface" /> <!-- deprecated in ApiPlatform 2.7 -->
<referencedClass name="Sylius\Component\Core\Calculator\ProductVariantPriceCalculatorInterface" />
<referencedClass name="Sylius\Component\User\Security\UserPasswordEncoderInterface" />
<referencedClass name="Symfony\Component\DependencyInjection\ContainerAwareInterface" /> <!-- deprecated in Symfony 6.4 -->
<referencedClass name="Symfony\Component\Messenger\Handler\MessageHandlerInterface" /> <!-- deprecated in Symfony 6.2 -->
<referencedClass name="Symfony\Component\Security\Core\Encoder\EncoderAwareInterface" /> <!-- deprecated in Symfony 5.3 -->
<referencedClass name="Symfony\Component\Security\Core\Encoder\EncoderAwareInterface" /> <!-- deprecated in Symfony 5.3 -->
@ -59,6 +61,7 @@
<referencedClass name="Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface" /> <!-- deprecated in Symfony 6.3 -->
<referencedClass name="Symfony\Component\Serializer\Normalizer\ContextAwareDenormalizerInterface" /> <!-- deprecated in Symfony 6.1 -->
<referencedClass name="Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface" /> <!-- deprecated in Symfony 6.1 -->
<referencedClass name="Symfony\Component\Templating\Helper\HelperInterface" /> <!-- deprecated in Symfony 6.4 -->
</errorLevel>
</DeprecatedInterface>
<DeprecatedMethod>
@ -69,6 +72,7 @@
<referencedMethod name="Sylius\Component\Mailer\Sender\SenderInterface::send"/>
<referencedMethod name="Symfony\Component\HttpFoundation\JsonResponse::create" /> <!-- deprecated in Symfony 5.1 -->
<referencedMethod name="Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest" /> <!-- deprecated in Symfony 5.3 -->
<referencedMethod name="Symfony\Component\Messenger\Exception\HandlerFailedException::getNestedExceptionOfClass" /> <!-- deprecated in Symfony 6.4 -->
<referencedMethod name="Symfony\Component\Security\Core\Authentication\Token\AbstractToken::isAuthenticated" /> <!-- deprecated in Symfony 5.4 -->
<referencedMethod name="Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getUsername" /> <!-- deprecated in Symfony 5.3 -->
<referencedMethod name="Symfony\Component\Security\Core\User\UserInterface::getUsername" /> <!-- deprecated in Symfony 5.3 -->