|
I'm trying to write a rector set for my project to migrate from laravel/collective to spatie/html im stuck at this line of code i dont know what to do this variable in "class" im writing my own ValueResolver to process this line, here is where am i what should i do to make this into this Any help will be great |
Answered by
norak
Feb 3, 2025
Replies: 2 comments 6 replies
|
Hi, could you share your minimal PHP input code via AST viewer? https://getrector.com/ast Ideally just single item, short as single line if possible. I'll look into it. |
0 replies
|
https://getrector.com/ast/76e48fa307ccf76912f7560abfa508821304cebe |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<?php echo html()->button('<i class="fa ' . $actionBtnIcon . '" aria-hidden="true"></i> ' . $btnSubmitText)->type(['button'])->id(['confirm'])->class(['btn', 'btn-' . $modalClass, 'pull-right', 'btn-flat']) ?>ok. this worked for me
first i found array, then used transformConcatToStringArray