From 105667e4ca24439621758c40d448e12b711760a6 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Mon, 17 Jul 2023 18:31:29 +0100 Subject: [PATCH] fix: permission command tries to instantiate abstract classes (#56) --- src/Commands/Permission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;