Skip to content

PHP 8 Deprecated on getAlias Method #691

@woydadrien

Description

@woydadrien

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';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions