Skip to content

Commit 0f66a1c

Browse files
authored
Refactor getModelNamespace to use array_pop with argument - fix #711 (#714)
1 parent 82c812d commit 0f66a1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Commands/GenerateRepositoriesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function isModel(string $className): bool
196196
protected function getModelNamespace(string $className): string
197197
{
198198
$parts = explode('\\', $className);
199-
array_pop(); // Remove class name
199+
array_pop($parts); // Remove class name
200200

201201
return implode('\\', $parts);
202202
}

0 commit comments

Comments
 (0)