console-extra icon indicating copy to clipboard operation
console-extra copied to clipboard

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

Open tacman opened this issue 2 years ago • 0 comments

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

tacman avatar Mar 31 '24 13:03 tacman