diff --git a/src/Commands/Permission.php b/src/Commands/Permission.php index 693ef4f..7717d3b 100644 --- a/src/Commands/Permission.php +++ b/src/Commands/Permission.php @@ -188,7 +188,7 @@ private function getClassesInDirectory($path): array foreach ($files as $file) { $namespace = $this->extractNamespace($file); - $class = new ($namespace . '\\' . $file->getFilenameWithoutExtension()); + $class = $namespace . '\\' . $file->getFilenameWithoutExtension(); $model = new ReflectionClass($class); if (!$model->isAbstract()) { $models[] = $model;