Skip to content

Commit

Permalink
fix: permission command tries to instantiate abstract classes (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored Jul 17, 2023
1 parent fc2d392 commit 105667e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 105667e

Please sign in to comment.