Support the ongoing development of Laravel.io →
posted 10 months ago
Last updated 5 months 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.

1
Solution selected by @driesvints

Sign in to participate in this thread!

Full Stack Europe

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?

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

© 2022 Laravel.io - All rights reserved.