Skip to content

Commit fb5e976

Browse files
author
RYANOLEE
committed
support for php 56
1 parent 93feef5 commit fb5e976

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Controller/WebpackManifestController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
namespace Bluetel\WebpackManifestBundle\Controller;
33

44
use Bluetel\WebpackManifestBundle\WebpackManifest;
5-
use Symfony\Component\HttpFoundation\{Request, RedirectResponse, Response};
5+
use Symfony\Component\HttpFoundation\Request;
6+
use Symfony\Component\HttpFoundation\RedirectResponse;
7+
use Symfony\Component\HttpFoundation\Response;
68
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
79

810
/**

src/Twig/WebpackManifestExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getFunctions()
3232
* @param string $assetFilename
3333
* @return string
3434
*/
35-
public function manifestAsset(string $assetFilename)
35+
public function manifestAsset($assetFilename)
3636
{
3737
return $this->webpackManifest->getAssetPath($assetFilename);
3838
}

src/WebpackManifest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct($manifestPath)
2020
* @param string $assetFilename
2121
* @return string
2222
*/
23-
public function getAssetPath(string $assetFilename)
23+
public function getAssetPath($assetFilename)
2424
{
2525
if (!file_exists($this->manifestPath)) {
2626
return $assetFilename;

0 commit comments

Comments
 (0)