Procházet zdrojové kódy

Update AbstractGenerator.php

Rytis před 8 roky
rodič
revize
2a026d7f82

+ 1 - 1
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

@@ -77,7 +77,7 @@ abstract class AbstractGenerator
         })->collapse()->toArray();
 
         //Changes url with parameters like /users/{user} to /users/1
-        $uri =  preg_replace("/{(.*)}/", 1, $uri);
+        $uri =  preg_replace('/{(.*)}/', 1, $uri);
         
         return $this->callRoute(array_shift($methods), $uri, [], [], [], $headers);
     }