Skip to content

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Jul 7, 2025

Hello!

This backports #56235 to 11.x.

We're getting hundreds of pages of the following logs even though all of our commands use the AsCommand attribute:

Since symfony/console 7.3: Method "Symfony\Component\Console\Command\Command::getDefaultDescription()" is deprecated and will be removed in Symfony 8.0, use the #[AsCommand] attribute instead. in /var/www/eaglesys/releases/629/vendor/symfony/deprecation-contracts/function.php on line 25

This is because the attribute description is not being used to set the command description due to Symfony's === '' check on the parent constructor.

Thanks!

The Symfony Command uses the AsCommand attribute to set properties on
the command class. However, the properties are only set if they are
identical to an empty string. The Laravel Command class overrides the
properties and removes the default value which causes the properties to
be null and therefore not set.
@taylorotwell taylorotwell merged commit 0bbe002 into laravel:11.x Jul 8, 2025
60 checks passed
@calebdw
Copy link
Contributor Author

calebdw commented Jul 8, 2025

Thank you!!

@calebdw calebdw deleted the calebdw/push-ooplwxxoqwuk branch July 8, 2025 13:45
taylorotwell pushed a commit that referenced this pull request Jul 14, 2025
* [11.x] Correct how base options for missing config files are preloaded (#56216)

* Formatting

* Add breaking test to demo config array has been incorrectly keyed with numbers

* Correct how base options for missing config files are preloaded

* fix: AsCommand properties not being set on commands (#56236)

The Symfony Command uses the AsCommand attribute to set properties on
the command class. However, the properties are only set if they are
identical to an empty string. The Laravel Command class overrides the
properties and removes the default value which causes the properties to
be null and therefore not set.

---------

Co-authored-by: Caleb White <[email protected]>
mohammad-fouladgar pushed a commit to mohammad-fouladgar/framework that referenced this pull request Jul 22, 2025
* [11.x] Correct how base options for missing config files are preloaded (laravel#56216)

* Formatting

* Add breaking test to demo config array has been incorrectly keyed with numbers

* Correct how base options for missing config files are preloaded

* fix: AsCommand properties not being set on commands (laravel#56236)

The Symfony Command uses the AsCommand attribute to set properties on
the command class. However, the properties are only set if they are
identical to an empty string. The Laravel Command class overrides the
properties and removes the default value which causes the properties to
be null and therefore not set.

---------

Co-authored-by: Caleb White <[email protected]>
crynobone added a commit that referenced this pull request Aug 12, 2025
* [11.x] Correct how base options for missing config files are preloaded (#56216)

* Formatting

* Add breaking test to demo config array has been incorrectly keyed with numbers

* Correct how base options for missing config files are preloaded

* fix: AsCommand properties not being set on commands (#56236)

The Symfony Command uses the AsCommand attribute to set properties on
the command class. However, the properties are only set if they are
identical to an empty string. The Laravel Command class overrides the
properties and removes the default value which causes the properties to
be null and therefore not set.

* update trust proxy

* add trust proxy

* [12.x] Consistent use of `mb_split()` to split strings into words (#56338) (#56617)

* consistent use of mb_split to split strings into words with multi-byte support

* The $pattern argument doesn't use /pattern/ delimiters, unlike other regex functions such as preg_match

Co-authored-by: Sebastian Hädrich <[email protected]>

* fix: CacheSchedulingMutex should use lock connection (#56472) (#56614)

Co-authored-by: Julius van Dijk <[email protected]>

* Test Improvements

- Fix integration with PHPUnit 12.3.4
- Fix PHPStan

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* Apply fixes from StyleCI

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
Co-authored-by: Jonathan Goode <[email protected]>
Co-authored-by: Caleb White <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
Co-authored-by: Graham Campbell <[email protected]>
Co-authored-by: Sebastian Hädrich <[email protected]>
Co-authored-by: Julius van Dijk <[email protected]>
Co-authored-by: StyleCI Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants