File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4+ - 5.4
5+ - 5.5
6+ - 5.6
47 - 7.0
58
69before_script :
Original file line number Diff line number Diff line change 1111 }
1212 ],
1313 "require" : {
14- "php" : " >=7.0 .0" ,
14+ "php" : " >=5.4 .0" ,
1515 "laravel/framework" : " ~5.0" ,
1616 "phpdocumentor/reflection-docblock" : " ~2.0" ,
1717 "mpociot/documentarian" : " ^0.2.0" ,
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ private function getRouteRules($route)
9292 $ reflectionMethod = $ reflection ->getMethod ($ method );
9393
9494 foreach ($ reflectionMethod ->getParameters () as $ parameter ) {
95- $ parameterType = $ parameter ->getType ();
96- if (!is_null ($ parameterType ) && class_exists ($ parameterType )) {
97- $ className = $ parameterType ->__toString () ;
95+ $ parameterType = $ parameter ->getClass ();
96+ if (!is_null ($ parameterType ) && class_exists ($ parameterType-> name )) {
97+ $ className = $ parameterType ->name ;
9898 $ parameterReflection = new $ className ;
9999 if ($ parameterReflection instanceof FormRequest) {
100100 if (method_exists ($ parameterReflection , 'validator ' )) {
You can’t perform that action at this time.
0 commit comments