Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8 Deprecated on getAlias Method #691

Open
woydadrien opened this issue Mar 24, 2022 · 1 comment
Open

PHP 8 Deprecated on getAlias Method #691

woydadrien opened this issue Mar 24, 2022 · 1 comment

Comments

@woydadrien
Copy link

woydadrien commented Mar 24, 2022

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
Copy link

4nkitd commented Aug 8, 2022

facing similar issues any solution or workaround available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants