Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(maker): Fix icon argument usage in UiElementMaker #234

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

welcoMattic
Copy link
Contributor

@welcoMattic welcoMattic commented Jul 30, 2024

Despite specifying icon argument on make:ui-element command, the generated class contained always map pin icon name.
The argument was not used in UiElementMaker class.

This PR fix it, and set square as neutral default icon, WDYT?

Warning

I reduced the PHPStan level from max to 8, because max level (currently 9) only brings constraint about mixed type which is more annoying than useful. Even PHPStan itself is configured to 8 (https://github.com/phpstan/phpstan-src/blob/1.12.x/build/phpstan.neon#L14)

@madamebiz madamebiz added the quick win Easy to pick, everybody will be happy. label Jul 30, 2024
@madamebiz madamebiz added the Status: needs review Status: needs review label Jul 30, 2024
Copy link
Contributor

@Kiwikoti Kiwikoti left a comment

Choose a reason for hiding this comment

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

Just fix the tests otherwise LGTM

@welcoMattic welcoMattic force-pushed the fix/ui-element-maker-icon branch from af8c6c4 to 71ed066 Compare July 30, 2024 13:15
.php-cs-fixer.cache Outdated Show resolved Hide resolved
@welcoMattic welcoMattic force-pushed the fix/ui-element-maker-icon branch from 71ed066 to 5ca8665 Compare August 26, 2024 15:32
@welcoMattic welcoMattic force-pushed the fix/ui-element-maker-icon branch from 5ca8665 to c4ce8a6 Compare August 26, 2024 15:33
@maximehuran maximehuran merged commit 4b44843 into master Aug 26, 2024
12 checks passed
@welcoMattic welcoMattic deleted the fix/ui-element-maker-icon branch August 27, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quick win Easy to pick, everybody will be happy. Status: needs review Status: needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants