-
|
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 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
|
https://getrector.com/ast/76e48fa307ccf76912f7560abfa508821304cebe |
Beta Was this translation helpful? Give feedback.
<?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