Skip to content

Commit 7f9233c

Browse files
committed
Fix validateVariable
1 parent 2d96e9f commit 7f9233c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request/RequiredArguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ private function setVariable(string $argument, bool $optional = false): void
138138
{
139139
if (strrpos($argument, '\\') === false) {
140140
$VALUE = $this->where[$argument] ?? ($optional ? null : throw new RequiredArgumentMissingException($argument));
141+
$this->with($argument, $VALUE);
141142
if (isset($this->regexArguments[$argument]) && isset($this->where[$argument])) {
142143
$this->validateVariable($this->regexArguments[$argument]);
143144
/** @psalm-suppress RiskyCast */
@@ -147,7 +148,6 @@ private function setVariable(string $argument, bool $optional = false): void
147148
default => $VALUE
148149
};
149150
}
150-
$this->with($argument, $VALUE);
151151
} else if (enum_exists($argument)) {
152152
$argumentClazz = new \ReflectionClass($argument);
153153
if (

0 commit comments

Comments
 (0)