Ver Fonte

Merge remote-tracking branch 'origin/master'

shalvah há 6 anos atrás
pai
commit
c70ceba5d3
2 ficheiros alterados com 6 adições e 1 exclusões
  1. 4 1
      CHANGELOG.md
  2. 2 0
      src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

+ 4 - 1
CHANGELOG.md

@@ -10,10 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Changed
 
 ### Fixed
-- Set correct HTTP method when parsing FormRequest
 
 ### Removed
 
+## [2.1.2] - 10th September, 2018
+### Fixed
+- Set correct HTTP method when parsing FormRequest (https://github.com/mpociot/laravel-apidoc-generator/pull/314)
+
 ## [2.1.1] - 10th September, 2018
 ### Fixed
 - Print the correct file path of generated documentation (https://github.com/mpociot/laravel-apidoc-generator/pull/311)

+ 2 - 0
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

@@ -277,6 +277,7 @@ abstract class AbstractGenerator
      * @param  array $routeMethods
      * @param  string $routeAction
      * @param  array $bindings
+     *
      * @return array
      */
     protected function getRouteRules(array $routeMethods, $routeAction, $bindings)
@@ -301,6 +302,7 @@ abstract class AbstractGenerator
 
                     if (method_exists($formRequest, 'validator')) {
                         $factory = app(ValidationFactory::class);
+
                         return call_user_func_array([$formRequest, 'validator'], [$factory])
                             ->getRules();
                     } else {