You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: disable Castor stub generation to prevent interface conflicts in PHP 8.2-8.3
Set CASTOR_GENERATE_STUBS=0 environment variable in CI to prevent the auto-generation
of .castor.stub.php file which causes fatal errors in PHP 8.2 and 8.3:
'Cannot declare interface Psr\Cache\CacheItemInterface, because the name is already in use'
The stub file is auto-generated by Castor for IDE support and contains interface definitions
that conflict with real PSR interfaces from Composer dependencies. PHP 8.4 handles this
differently and doesn't encounter the issue.
By disabling stub generation, we can continue using 'castor phpunit' while avoiding the conflict.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
rawMessage:'Method Webauthn\Bundle\DependencyInjection\WebauthnExtension::getAlias() has Symfony\Component\DependencyInjection\Exception\BadMethodCallException in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Webauthn\Bundle\DependencyInjection\WebauthnExtension::getConfiguration() has a parameter $container with a type declaration of Symfony\Component\DependencyInjection\ContainerBuilder, but containers should not be injected.'
rawMessage:'Method Webauthn\Bundle\Security\Authentication\WebauthnBadge::getUser() has Symfony\Component\Security\Core\Exception\AuthenticationException in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Webauthn\Denormalizer\TrustPathDenormalizer::normalize() has Symfony\Component\Serializer\Exception\ExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getContent() has Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getContent() has Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getContent() has Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getContent() has Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getHeaders() has Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getHeaders() has Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getHeaders() has Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getHeaders() has Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
rawMessage:'Method Symfony\Contracts\HttpClient\ResponseInterface@anonymous/webauthn/src/MetadataService/Psr18HttpClient.php:75::getStatusCode() has Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface in PHPDoc @throws tag but it''s not thrown.'
0 commit comments