]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Package/PathPackage.php
Drop useless url
[packbundle] / Package / PathPackage.php
index 4746fe913368a2abe81df7591d6ff3e19b468ed6..8b531361d22b0d7e8dfd4360c486431d43996e05 100644 (file)
@@ -69,7 +69,7 @@ class PathPackage extends Package {
         *
         * {@inheritdoc}
         */
         *
         * {@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
                //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