forked from loafle/openapi-generator-original
[PHP-Symfony] Fix Symfony warning on OpenAPIServerBundle (#15960)
This fixes this Symfony warning:
User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()"
might add "void" as a native return type declaration in the future. Do the
same in child class "OpenAPI\Server\OpenAPIServerBundle" now to avoid errors
or add an explicit @return annotation to suppress this message
This fixes #15959
This commit is contained in:
@@ -43,7 +43,7 @@ use OpenAPI\Server\DependencyInjection\Compiler\OpenAPIServerApiPass;
|
||||
*/
|
||||
class OpenAPIServerBundle extends Bundle
|
||||
{
|
||||
public function build(ContainerBuilder $container)
|
||||
public function build(ContainerBuilder $container): void
|
||||
{
|
||||
$container->addCompilerPass(new OpenAPIServerApiPass());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user