diff --git a/src/AnnotatedCommandFactory.php b/src/AnnotatedCommandFactory.php index a12c3b6..fb0031d 100644 --- a/src/AnnotatedCommandFactory.php +++ b/src/AnnotatedCommandFactory.php @@ -266,8 +266,7 @@ protected function createCommandInfoListFromClass($commandFileInstance, $cachedC get_class_methods($commandFileInstance) ?: [], function ($m) use ($commandFileInstance) { $reflectionMethod = new \ReflectionMethod($commandFileInstance, $m); - $name = $reflectionMethod->getFileName(); - return !$reflectionMethod->isStatic() && !preg_match('#^_#', $m) && basename($name) !== 'IO.php' && strpos($name, 'Trait') === false; + return !$reflectionMethod->isStatic() && !preg_match('#^_#', $m); } );