After the #116 merge, I could test some Symfony 6 apps with it and I found the following errors which are fixed in this PR:
Fatal error: Declaration of SymfonyCorp\Connect\DependencyInjection\SymfonyConnectExtension::getAlias()
must be compatible with Symfony\Component\DependencyInjection\Extension\Extension::getAlias(): string
in my-project/vendor/symfonycorp/connect/src/DependencyInjection/SymfonyConnectExtension.php on line 34
PHP Fatal error: Class SymfonyCorp\Connect\DependencyInjection\Security\Factory\ConnectFactory
contains 1 abstract method and must therefore be declared abstract or implement the remaining methods
(Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AuthenticatorFactoryInterface::getPriority)
in my-project/vendor/symfonycorp/connect/src/DependencyInjection/Security/Factory/ConnectFactory.php on line 23
PHP Fatal error: Could not check compatibility between
SymfonyCorp\Connect\Security\ConnectAuthenticator::authenticate(Symfony\Component\HttpFoundation\Request $request):
Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface
and Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface::authenticate(Symfony\Component\HttpFoundation\Request $request):
Symfony\Component\Security\Http\Authenticator\Passport\Passport,
because class Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface is not available
in my-project/vendor/symfonycorp/connect/src/Security/ConnectAuthenticator.php on line 93
Compile Error: Declaration of SymfonyCorp\Connect\Api\Entity\Index::offsetGet($offset)
must be compatible with SymfonyCorp\Connect\Api\Entity\AbstractEntity::offsetGet(mixed $index): mixed
Fatal error: Declaration of SymfonyCorp\Connect\Api\Entity\Index::offsetSet($offset, $value)
must be compatible with SymfonyCorp\Connect\Api\Entity\AbstractEntity::offsetSet(mixed $index, mixed $value): void
in my-project/vendor/symfonycorp/connect/src/Api/Entity/Index.php on line 103
Fatal error: Declaration of SymfonyCorp\Connect\Api\Entity\Index::offsetUnset($offset)
must be compatible with SymfonyCorp\Connect\Api\Entity\AbstractEntity::offsetUnset(mixed $index): void
in my-project/vendor/symfonycorp/connect/src/Api/Entity/Index.php on line 108
After the #116 merge, I could test some Symfony 6 apps with it and I found the following errors which are fixed in this PR: