Skip to content

Conversation

kbond
Copy link
Member

@kbond kbond commented May 17, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues Fix #60412
License MIT

Includes the class/method in #[Argument]/#[Option] exception messages.

Example

The option parameter "$a" of "App\Command\SendSalesReportsCommand::__invoke()" must declare a default value.

@kbond kbond requested a review from yceruto May 17, 2025 23:41
@kbond kbond requested a review from chalasr as a code owner May 17, 2025 23:41
@carsonbot carsonbot added this to the 7.3 milestone May 17, 2025
@yceruto
Copy link
Member

yceruto commented May 18, 2025

@kbond it seems tests failures are related

@kbond
Copy link
Member Author

kbond commented May 18, 2025

Ak, indeed, I'll get them fixed

@OskarStark OskarStark added the ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" label May 19, 2025
@kbond
Copy link
Member Author

kbond commented May 22, 2025

I opted to remove the exception message assertion rather than dig into crazy regex. If someone has a better method, let me know!

@fabpot fabpot force-pushed the invokable-attribute-context branch from 38f6561 to c9d7c63 Compare May 24, 2025 10:34
@fabpot
Copy link
Member

fabpot commented May 24, 2025

Thank you @kbond.

@fabpot fabpot merged commit a4e1419 into symfony:7.3 May 24, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Console ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Console] 7.3 Add source filename to #[Option] error messages
7 participants