zenstruck / console-extra

A modular set of features to reduce configuration boilerplate for your Symfony commands.
MIT License
78 stars 3 forks source link

Add details to option/argument to kebab-case deprecation message #67

Open tacman opened 6 months ago

tacman commented 6 months ago

can you add the specific variable and file to this warning?

That is, I'd like to see something like

Specify #[Option(name: 'page-size']) in AppLoadDataCommand.php to explicitly to remove this deprecation."

{"message":"User Deprecated: Since zenstruck/console-extra 1.4: Argument names will default to kebab-case in 2.0. Specify the name in #[Option] explicitly to remove this deprecation.","context":{"exception":{"class":"ErrorException","message":"User Deprecated: Since zenstruck/console-extra 1.4: Argument names will default to kebab-case in 2.0. Specify the name in #[Option] explicitly to remove this deprecation.","code":0,"file":"/app/vendor/zenstruck/console-extra/src/Attribute/Option.php:60"}},"level":200,"level_name":"INFO","channel":"deprecation","datetime":"2024-03-31T12:09:32.233949+00:00","extra":{}} c33s/knp-menu-extra-bundle