I am using PHP 8.3 for a laravel application and I am getting this exception very frequently.
Error in the logs:
Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
The code that causes this error:
<li class="kt-menu__item {{ Request::is('admin/users') ? 'kt-menu__item--active' : '' || Request::is('admin/user/*') ? 'kt-menu__item--active' : '' }}" aria-haspopup="true">
Is there a way to fix this error?
I don’t understand where to add the brackets
New contributor
colatych is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.