From b1c3552a6edad26c4967ff82a954236bca0dd984 Mon Sep 17 00:00:00 2001 From: Matronator <5470780+matronator@users.noreply.github.com> Date: Thu, 12 Oct 2023 21:42:42 +0200 Subject: [PATCH] fix --- composer.lock | 12 ++++++------ src/Mtrgen/Cli/BaseGeneratorCommand.php | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index f27972d..c040747 100644 --- a/composer.lock +++ b/composer.lock @@ -333,16 +333,16 @@ }, { "name": "matronator/parsem", - "version": "v3.0.1", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/matronator/parsem.git", - "reference": "908bbebaa93bcdb91aae4617522d387b14a60bcf" + "reference": "9190051d8cdc80405ab450bf1e202bc92f7559b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/matronator/parsem/zipball/908bbebaa93bcdb91aae4617522d387b14a60bcf", - "reference": "908bbebaa93bcdb91aae4617522d387b14a60bcf", + "url": "https://api.github.com/repos/matronator/parsem/zipball/9190051d8cdc80405ab450bf1e202bc92f7559b0", + "reference": "9190051d8cdc80405ab450bf1e202bc92f7559b0", "shasum": "" }, "require": { @@ -387,7 +387,7 @@ ], "support": { "issues": "https://github.com/matronator/parsem/issues", - "source": "https://github.com/matronator/parsem/tree/v3.0.1" + "source": "https://github.com/matronator/parsem/tree/v3.0.2" }, "funding": [ { @@ -407,7 +407,7 @@ "type": "paypal" } ], - "time": "2023-10-12T19:21:14+00:00" + "time": "2023-10-12T19:41:36+00:00" }, { "name": "nette/finder", diff --git a/src/Mtrgen/Cli/BaseGeneratorCommand.php b/src/Mtrgen/Cli/BaseGeneratorCommand.php index 64da56e..a58dccf 100644 --- a/src/Mtrgen/Cli/BaseGeneratorCommand.php +++ b/src/Mtrgen/Cli/BaseGeneratorCommand.php @@ -125,6 +125,7 @@ protected function askArguments(mixed $helper, ?string $path = null, ?string $id $this->output->writeln('Looking for template parameters...'); $args = Parser::getArguments($identifier ? $contents : $template); + $args = $args->arguments; if ($args !== []) { $this->io->writeln('Template parameters found!'); $this->io->newLine();