Skip to content

Fix class casing regression after removing Symfony String component#15

Merged
loicsapone merged 1 commit into
Mezcalito:0.xfrom
22h:hotfix/fix-options-resolving-namespace-generation
Dec 9, 2025
Merged

Fix class casing regression after removing Symfony String component#15
loicsapone merged 1 commit into
Mezcalito:0.xfrom
22h:hotfix/fix-options-resolving-namespace-generation

Conversation

@22h

@22h 22h commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

hi,
i found a small bug in the OptionFactory class.

The issue was introduced when switching away from the Symfony String component (1635a1c).
The replacement logic incorrectly used lcfirst, causing autoloader failures.

Error: Class "\Mezcalito\ImgproxyBundle\Option\resize" not found
/[...]/imgproxy-bundle/src/Option/OptionFactory.php:23
/[...]/imgproxy-bundle/tests/Option/OptionFactoryTest.php:24

I changed it to ucfirst so the generated class names match the actual classes (e.g., Resize).
I also added two small regression tests.

@loicsapone loicsapone merged commit 3faa20d into Mezcalito:0.x Dec 9, 2025
7 checks passed
@loicsapone

Copy link
Copy Markdown
Member

Good catch @22h, thanks!

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