Closed nothingatalldotnet closed 3 years ago
This appears to be a PHP 7.4 issue
I assume by the fact that you are using both vagrant and Laravel that you are using Homestead :)
I just came across the same issue, whilst you wait for an update you can run
php73
In your Homestead VM to downgrade the default PHP CLI to 7.3
Yep Homestead (sorry should have said) And yes downgrading to 7.3 resolved the issue.
please we need fix in this issue
Unparenthesized a ? b : c ? d : e
is deprecated. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
the fix is easy
replace this line (line 405) to $files = (is_array($files) ? $files : is_string($files)) ? [$files]: $files;
I'am using php 7.4
It is fixed in master-branch already, just not in the last release.
composer require zanysoft/laravel-zip:master
to use the master instead of the last release.
ping @zanysoft
We would also be very happy if this gets the step into a stable release. At the moment, we need to require the master branch, but as everyone can imagine, we do not want to require the master branch in our production environment. :-D
Yeah I guess we w ill have to use composer require zanysoft/laravel-zip:master
. At least until another release is tagged by @zanysoft .
Still not merged @zanysoft? Would love to see this fixed :-)
Can confirm, still not merged. Just spent over 40 minutes thinking it was my fault and tried to use another package, but then a friend of mine found this issue and I switched to the master instead.
anyone knows a fix for this?
wow, this is an issue since 2019...
wow, this is an issue since 2019...
Use composer require zanysoft/laravel-zip:master
for now. Either that or fork, update and add your own composer package attached to your repository. We decided to use this option and get the master branch as tag for now. May fork in the future.
Unparenthesized
a ? b : c ? d : eis deprecated. Use either
(a ? b : c) ? d : eor
a ? b : (c ? d : e){"exception":"[object] (ErrorException(code: 0): Unparenthesized
a ? b : c ? d : eis deprecated. Use either
(a ? b : c) ? d : eor
a ? b : (c ? d : e)at /home/vagrant/tyrepress-api/vendor/zanysoft/laravel-zip/src/Zip.php:405)
Updated Laravel to 6.6 and PHP7.4
See stacktrace below