Skip to content

Conversation

@HypeMC
Copy link
Member

@HypeMC HypeMC commented Oct 27, 2025

Q A
Branch? 4.x
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Currently, we have a mix of strings and constants. I suggest using constants everywhere. This actually helped me spot #553.

I targeted 4.x because there would be a lot of conflicts if done on 3.x.

Also, I intentionally didn't import non-Symfony classes, as I think this is more readable. That's just my opinion though, I'm fine with imports as well.

@HypeMC HypeMC requested a review from GromNaN October 27, 2025 23:10
Comment on lines -447 to -452
if (!interface_exists('Monolog\ResettableInterface')) {
$this->markTestSkipped('The ResettableInterface is not available.');
}
Copy link
Member Author

@HypeMC HypeMC Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another thing I spotted while doing this.

@HypeMC HypeMC force-pushed the use-class-constant branch from 03c1fa2 to 55c44e1 Compare October 27, 2025 23:17
@HypeMC HypeMC force-pushed the use-class-constant branch from 55c44e1 to fc36540 Compare October 27, 2025 23:18
@GromNaN
Copy link
Member

GromNaN commented Oct 27, 2025

Thank you @HypeMC.

@GromNaN GromNaN merged commit 27d779a into symfony:4.x Oct 27, 2025
8 checks passed
@HypeMC HypeMC deleted the use-class-constant branch October 27, 2025 23:26
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