mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
fixed : add doc blocks to silence Symfony deprecations (#1922)
* fixed : add doc blocks to silence Symfony deprecations Symfony 5.4 returning deprecations about ``` User Deprecated: Method "Twig\Extension\ExtensionInterface::getFunctions()" might add "array" as a native return type declaration in the future. Do the same in implementation "Nelmio\ApiDocBundle\Render\Html\GetNelmioAsset" now to avoid errors or add an explicit @return annotation to suppress this message. ``` * fixed : native hint
This commit is contained in:
parent
82bb3cb916
commit
4148dfda25
@ -31,7 +31,7 @@ class GetNelmioAsset extends AbstractExtension
|
|||||||
$this->resourcesDir = __DIR__.'/../../Resources/public';
|
$this->resourcesDir = __DIR__.'/../../Resources/public';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFunctions()
|
public function getFunctions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
new TwigFunction('nelmioAsset', $this, ['is_safe' => ['html']]),
|
new TwigFunction('nelmioAsset', $this, ['is_safe' => ['html']]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user