]> Raphaël G. Git Repositories - packbundle/commitdiff
Remove strict type for path to conform to parent definition
authorRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 13:41:32 +0000 (15:41 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 13:41:32 +0000 (15:41 +0200)
Package/PathPackage.php

index 4746fe913368a2abe81df7591d6ff3e19b468ed6..8b531361d22b0d7e8dfd4360c486431d43996e05 100644 (file)
@@ -69,7 +69,7 @@ class PathPackage extends Package {
         *
         * {@inheritdoc}
         */
-       public function getUrl(string $path): string {
+       public function getUrl($path): string {
                //Match url starting with a bundle name
                if (preg_match('%^@([A-Z][a-zA-Z]*?)(?:Bundle/Resources/public)?/(.*)$%', $path, $matches)) {
                        //Handle empty or without replacement pattern basePath