From fb5e9765059d55fe03c18a7773d531f85db42e00 Mon Sep 17 00:00:00 2001 From: RYANOLEE Date: Fri, 7 Aug 2020 09:47:37 +0100 Subject: [PATCH] support for php 56 --- src/Controller/WebpackManifestController.php | 4 +++- src/Twig/WebpackManifestExtension.php | 2 +- src/WebpackManifest.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Controller/WebpackManifestController.php b/src/Controller/WebpackManifestController.php index b91eafb..f557ccb 100644 --- a/src/Controller/WebpackManifestController.php +++ b/src/Controller/WebpackManifestController.php @@ -2,7 +2,9 @@ namespace Bluetel\WebpackManifestBundle\Controller; use Bluetel\WebpackManifestBundle\WebpackManifest; -use Symfony\Component\HttpFoundation\{Request, RedirectResponse, Response}; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RedirectResponse; +use Symfony\Component\HttpFoundation\Response; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; /** diff --git a/src/Twig/WebpackManifestExtension.php b/src/Twig/WebpackManifestExtension.php index b1194b8..11ea445 100644 --- a/src/Twig/WebpackManifestExtension.php +++ b/src/Twig/WebpackManifestExtension.php @@ -32,7 +32,7 @@ public function getFunctions() * @param string $assetFilename * @return string */ - public function manifestAsset(string $assetFilename) + public function manifestAsset($assetFilename) { return $this->webpackManifest->getAssetPath($assetFilename); } diff --git a/src/WebpackManifest.php b/src/WebpackManifest.php index cc762d5..bd0385a 100644 --- a/src/WebpackManifest.php +++ b/src/WebpackManifest.php @@ -20,7 +20,7 @@ public function __construct($manifestPath) * @param string $assetFilename * @return string */ - public function getAssetPath(string $assetFilename) + public function getAssetPath($assetFilename) { if (!file_exists($this->manifestPath)) { return $assetFilename;