Support the ongoing development of Laravel.io →
posted 2 years ago
Last updated 1 year ago.
0
moderator Solution

This usage has been deprecated since PHP 7.4: https://www.php.net/manual/en/migration74.deprecated.php#migra...

Either use:

($gigData->three_packages == 1 ? 'checked' : $gigData->packages_details == null) ? 'checked' : ''

Or:

$gigData->three_packages == 1 ? 'checked' : ($gigData->packages_details == null ? 'checked' : '')

Depending on what you want the logic to be.

joedixon liked this reply

1
Solution selected by @driesvints

Sign in to participate in this thread!

Eventy

Your banner here too?

Cristian zeus6999 Joined 31 Oct 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.