FriendsOfSymfony / FOSOAuthServerBundle

A server side OAuth2 Bundle for Symfony
1.09k stars 451 forks source link

PHP 8 Deprecated on getAlias Method #691

Open woydadrien opened 2 years ago

woydadrien commented 2 years ago

On PHP 8 we have this deprecation message :

2022-03-18T09:39:46+01:00 [info] User Deprecated: Method "Symfony\Component\DependencyInjection\Extension\Extension::getAlias()" might add "string" as a native return type declaration in the future. Do the same in child class "FOS\OAuthServerBundle\DependencyInjection\FOSOAuthServerExtension" now to avoid errors or add an explicit @return annotation to suppress this message.

getAlias method need to add @return string add the doc to remove this message :
`

/**
 * @return string
 */
public function getAlias()
{
    return 'fos_oauth_server';
}
4nkitd commented 2 years ago

facing similar issues any solution or workaround available?