nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

remove null coalescence to prevent php 5 issues #195

Closed mpetty closed 4 years ago

mpetty commented 5 years ago

Null coalescence was added in php7, but the composer.json still specifies php5 support. since this is the only piece of code causing an issue, ive modified it for php5. an alternative would be changing the composer.json to only support >= php7.