You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GenericRuntime.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -125,14 +125,14 @@ public function getRunner(?object $application): RunnerInterface
125
125
}
126
126
127
127
if (!\is_callable($application)) {
128
-
thrownew \LogicException(sprintf('"%s" doesn\'t know how to handle apps of type "%s".', get_debug_type($this), get_debug_type($application)));
128
+
thrownew \LogicException(\sprintf('"%s" doesn\'t know how to handle apps of type "%s".', get_debug_type($this), get_debug_type($application)));
129
129
}
130
130
131
131
$application = $application(...);
132
132
}
133
133
134
134
if ($_SERVER[$this->options['debug_var_name']] && ($r = new \ReflectionFunction($application)) && $r->getNumberOfRequiredParameters()) {
135
-
thrownew \ArgumentCountError(sprintf('Zero argument should be required by the runner callable, but at least one is in "%s" on line "%d.', $r->getFileName(), $r->getStartLine()));
135
+
thrownew \ArgumentCountError(\sprintf('Zero argument should be required by the runner callable, but at least one is in "%s" on line "%d.', $r->getFileName(), $r->getStartLine()));
136
136
}
137
137
138
138
returnnewClosureRunner($application);
@@ -171,7 +171,7 @@ protected function getArgument(\ReflectionParameter $parameter, ?string $type):
171
171
if (!$runtime = $this->getRuntime($type)) {
172
172
$r = $parameter->getDeclaringFunction();
173
173
174
-
thrownew \InvalidArgumentException(sprintf('Cannot resolve argument "%s $%s" in "%s" on line "%d": "%s" supports only arguments "array $context", "array $argv" and "array $request", or a runtime named "Symfony\Runtime\%1$sRuntime".', $type, $parameter->name, $r->getFileName(), $r->getStartLine(), get_debug_type($this)));
174
+
thrownew \InvalidArgumentException(\sprintf('Cannot resolve argument "%s $%s" in "%s" on line "%d": "%s" supports only arguments "array $context", "array $argv" and "array $request", or a runtime named "Symfony\Runtime\%1$sRuntime".', $type, $parameter->name, $r->getFileName(), $r->getStartLine(), get_debug_type($this)));
Copy file name to clipboardExpand all lines: Internal/ComposerPlugin.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public function updateAutoloadFile(): void
70
70
}
71
71
72
72
if (!is_file($autoloadTemplate)) {
73
-
thrownew \InvalidArgumentException(sprintf('File "%s" defined under "extra.runtime.autoload_template" in your composer.json file not found.', $this->composer->getPackage()->getExtra()['runtime']['autoload_template']));
73
+
thrownew \InvalidArgumentException(\sprintf('File "%s" defined under "extra.runtime.autoload_template" in your composer.json file not found.', $this->composer->getPackage()->getExtra()['runtime']['autoload_template']));
Copy file name to clipboardExpand all lines: Resolver/DebugClosureResolver.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ static function (...$arguments) use ($closure) {
28
28
29
29
$r = new \ReflectionFunction($closure);
30
30
31
-
thrownew \TypeError(sprintf('Unexpected value of type "%s" returned, "object" expected from "%s" on line "%d".', get_debug_type($app), $r->getFileName(), $r->getStartLine()));
31
+
thrownew \TypeError(\sprintf('Unexpected value of type "%s" returned, "object" expected from "%s" on line "%d".', get_debug_type($app), $r->getFileName(), $r->getStartLine()));
Copy file name to clipboardExpand all lines: Runner/ClosureRunner.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ public function run(): int
36
36
if (null !== $exitStatus && !\is_int($exitStatus)) {
37
37
$r = new \ReflectionFunction($this->closure);
38
38
39
-
thrownew \TypeError(sprintf('Unexpected value of type "%s" returned, "string|int|null" expected from "%s" on line "%d".', get_debug_type($exitStatus), $r->getFileName(), $r->getStartLine()));
39
+
thrownew \TypeError(\sprintf('Unexpected value of type "%s" returned, "string|int|null" expected from "%s" on line "%d".', get_debug_type($exitStatus), $r->getFileName(), $r->getStartLine()));
Copy file name to clipboardExpand all lines: SymfonyRuntime.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ public function __construct(array $options = [])
108
108
109
109
if (isset($this->input) && ($options['dotenv_overload'] ?? false)) {
110
110
if ($this->input->getParameterOption(['--env', '-e'], $_SERVER[$envKey], true) !== $_SERVER[$envKey]) {
111
-
thrownew \LogicException(sprintf('Cannot use "--env" or "-e" when the "%s" file defines "%s" and the "dotenv_overload" runtime option is true.', $options['dotenv_path'] ?? '.env', $envKey));
111
+
thrownew \LogicException(\sprintf('Cannot use "--env" or "-e" when the "%s" file defines "%s" and the "dotenv_overload" runtime option is true.', $options['dotenv_path'] ?? '.env', $envKey));
112
112
}
113
113
114
114
if ($_SERVER[$debugKey] && $this->input->hasParameterOption('--no-debug', true)) {
@@ -207,7 +207,7 @@ protected static function register(GenericRuntime $runtime): GenericRuntime
207
207
208
208
privatefunctiongetInput(): ArgvInput
209
209
{
210
-
if (!empty($_GET) && filter_var(ini_get('register_argc_argv'), \FILTER_VALIDATE_BOOL)) {
210
+
if (!empty($_GET) && filter_var(\ini_get('register_argc_argv'), \FILTER_VALIDATE_BOOL)) {
211
211
thrownew \Exception('CLI applications cannot be run safely on non-CLI SAPIs with register_argc_argv=On.');
0 commit comments