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: system/Language/en/Commands.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
'arrayOptionEmptyArrayDefault' => 'Array option "--{0}" cannot have an empty array as the default value.',
21
21
'argumentAfterArrayArgument' => 'Argument "{0}" cannot be defined after array argument "{1}".',
22
22
'duplicateArgument' => 'An argument with the name "{0}" is already defined.',
23
-
'duplicateCommandName' => 'Warning: command "{0}" is defined as both legacy ({1}) and modern ({2}); the legacy command will execute. Please rename or remove one.',
23
+
'duplicateCommandName' => 'Warning: The "{0}" command is defined as both legacy ({1}) and modern ({2}). The legacy command will be executed. Please rename or remove one.',
24
24
'duplicateOption' => 'An option with the name "--{0}" is already defined.',
25
25
'duplicateShortcut' => 'Shortcut "-{0}" cannot be used for option "--{1}"; it is already assigned to option "--{2}".',
26
26
'emptyCommandName' => 'Command name cannot be empty.',
@@ -47,6 +47,7 @@
47
47
'noArgumentsExpected' => 'No arguments expected for "{0}" command. Received: "{1}".',
48
48
'nonArrayArgumentWithArrayDefault' => 'Argument "{0}" does not accept an array default value.',
49
49
'nonArrayOptionWithArrayValue' => 'Option "--{0}" does not accept an array value.',
50
+
'optionClashesWithExistingNegation' => 'Option "--{0}" clashes with the negation of negatable option "--{1}".',
50
51
'optionNoValueAndNoDefault' => 'Option "--{0}" does not accept a value and cannot have a default value.',
51
52
'optionNotAcceptingValue' => 'Option "--{0}" does not accept a value.',
52
53
'optionalArgumentNoDefault' => 'Argument "{0}" is optional and must have a default value.',
@@ -218,12 +259,14 @@ public function testDiscoveryWarnsWhenSameCommandNameExistsInBothRegistries(): v
218
259
$this->copyCommand($modernFixture);
219
260
220
261
try {
262
+
$message = wordwrap(
263
+
'Warning: The "dup:test" command is defined as both legacy (App\\Commands\\DuplicateLegacy) and modern (App\\Commands\\DuplicateModern). The legacy command will be executed. Please rename or remove one.',
264
+
CLI::getWidth(),
265
+
);
266
+
221
267
$commands = newCommands();
222
268
223
-
$this->assertStringContainsString(
224
-
'Warning: command "dup:test" is defined as both legacy (App\\Commands\\DuplicateLegacy) and modern (App\\Commands\\DuplicateModern)',
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.8.0.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ Behavior Changes
28
28
- **Commands:** The ``-h`` option to ``routes`` command which was mapped previously to the ``--handler`` option is now removed.
29
29
Use ``--handler`` instead to sort the routes by handler when running the ``routes`` command.
30
30
- **Commands:** The ``filter:check`` command now requires the HTTP method argument to be uppercase (e.g., ``spark filter:check GET /`` instead of ``spark filter:check get /``).
31
+
- **Commands:** Several built-in commands have been migrated from ``BaseCommand`` to the modern ``AbstractCommand`` style. Applications that extend a built-in command to override
32
+
behaviour may need to re-implement against the modern API (``configure()`` + ``execute()`` and the ``#[Command]`` attribute) once the class it extends is migrated, or, preferably, compose instead of extending. Invocations on the command line are unaffected.
31
33
- **Database:** The Postgre driver's ``$db->error()['code']`` previously always returned ``''``. It now returns the 5-character SQLSTATE string for query and transaction failures (e.g., ``'42P01'``), or ``'08006'`` for connection-level failures. Code that relied on ``$db->error()['code'] === ''`` will need updating.
32
34
- **Filters:** HTTP method matching for method-based filters is now case-sensitive. The keys in ``Config\Filters::$methods`` must exactly match the request method
33
35
(e.g., ``GET``, ``POST``). Lowercase method names (e.g., ``post``) will no longer match.
0 commit comments