-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility to PHP 8.1 #260
Comments
I've taken a look at this and it appears that it just needs a new build to be created against PHP 8.1 and released. I've installed PHP 8.1 locally and run I have created #261 to add PHP 8.1 to the test suite in Actions |
Merged #261; I'll test out the build process locally shortly. |
I've got the same error when using Takeout on PHP 8.1:
|
In case it's useful to anyone dealing with these errors, I thought I would mention what I've done as a workaround. Since I've got PHP 8.1 as my default CLI version (but I've got 7.3-8.0 also installed), I just created an alias in my .zshrc that forces Takeout to run under a specific PHP version, e.g.:
Not ideal but it lets me run Valet under 8.1 and still maintain a functioning Takeout install. |
A very good hint. Don't forget to source your .zshrc after that. In my case I had to adopt this a little bit (expose has the same problem, and this can also be solved like that):
|
Sorry y'all, I've been pretty burned out the last few days. Looking at this again now. |
Looks like this is a known issue. Let me dig into Box but I don't know anything about it so we're probably just dependent on them. |
@bakerkretzmar and I put in a PR to two of Laravel Zero's dependencies (PHP Scoper and Covers Validation, IIRC) to try to get PHP 8.1 support. Fingers crossed. |
any update? Will go back to PHP 7 for awhile if this is going to take some time. Appreciate you jumping on it @mattstauffer |
This is the PR I made to the dependency: It's still in draft form until the package author can take time to work with it: |
@mattstauffer You can now migrate this tool to Laravel Zero 9, and on the process, you will get this issue fixed. Of course, keep in mind, that just like Laravel 9, Laravel Zero 9 drops PHP 7.4 and PHP 7.3. |
Woooo thanks @nunomaduro! |
@mattstauffer Now that the upstream issues have been fixed, what's left to do on this repo? This is my last PHP 8.1 blocker, so I'd love to help anyway I can! |
@bandgeekndb Thanks! Looks like we need to upgrade it to Laravel Zero 9. I'd welcome that PR! |
#274 was merged yesterday, which should close this once a new build is tagged (1.8.13 was built and tagged before my PR was merged). I also realize I didn't include any docs updates in my PR, do you want to make a note about dropping PHP7 support? Maybe tag the new release as 2.0 and tell anyone who still needs PHP7 support to stay on the 1.* builds? |
Seems it still might need a new build published also because still seeing same errors that resolve with local "composer i && php ./takeout app:build" |
@priithansen which version is that, 2.0.1 or 2.0.2? Thanks! |
Interesting. I can't reproduce the cwd issue on my machine, but my machine is the one that built it. I'll dig in to see if I can figure out what's going on in Process.php line 344 and what's calling that particular spot, if I can. |
It could always just be something funky with my setup although tried to delete global vendors folder and do composer global clearcache :) anyways Thanks for the fantastic package! |
Hello,
using takeout, I am getting this error:
No problem, I will switch back to 8.0 - is there any ETA for 8.1? Unfortunately I can't contribute by myself at the moment, but I'd be happy to sponsor this package, but the sponsorship-option is disabled.
The text was updated successfully, but these errors were encountered: