diff --git a/src/Command/CreateCommand.php b/src/Command/CreateCommand.php index afb8006..56113fb 100644 --- a/src/Command/CreateCommand.php +++ b/src/Command/CreateCommand.php @@ -63,7 +63,7 @@ public function __invoke(): int public function createNamespace(string $path, string $name): string { $pluginPath = Str::replace(Plugin::PLUGIN_PATH . '/', '', $path); - list($orgName) = explode('/', $pluginPath); + [$orgName] = explode('/', $pluginPath); return 'Plugin\\' . Str::studly($orgName) . '\\' . Str::studly($name); }