diff --git a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php index b5f8863..ba6c716 100755 --- a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php @@ -221,13 +221,13 @@ exit('Only to be used as an helper for your IDE');\n\n"; } $reflection = new \ReflectionClass($class); - $methods = $reflection->getMethods(); + $methods = $reflection->getMethods(\ReflectionMethod::IS_PUBLIC); if($methods) { foreach ($methods as $method) { if(!in_array($method->name, $usedMethods)){ - if($method->isPublic() && $addOutput){ + if( $addOutput){ $output .= $this->parseMethod($method, $alias); } $usedMethods[] = $method->name;