-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Fix PHP 8.1 build failures #36813
Comments
@driesvints examples? |
Sorry I should have linked to a failing build. See here: https://github.com/laravel/framework/runs/2247074654 Basically you can inspect the "Execute tests" step of the PHP 8.1 build on the 8.x branch. |
@driesvints thanks, I'll PR some of these |
framework/src/Illuminate/Database/Connectors/Connector.php Lines 20 to 26 in 93019f1
I don't know what's the difference between emulated and native prepared statements. What confuses me is Anyway, many DB tests are failing because of this change. Would you accept a PR adding version checks like this: - $this->assertSame('2', $post->comments_count);
+ $this->assertSame(PHP_VERSION_ID >= 80100 ? 2 : '2', $post->comments_count); or do you prefer another solution? |
@jrmajor thanks for that. I'll take a look at it as soon as the above is unblocked. |
Blocked by aws/aws-sdk-php#2284 for now. |
AWS PHP SDK is now unblocked. Sent in a PR to the next blocking repo: dflydev/dflydev-dot-access-data#40 |
Next up is a Mockery fix for PHP 8.1 return types. Waiting until @GrahamCampbell has mockery/mockery@b4da544 committed to master. |
Edit: sorry, the following isn't even related to PHP calls. 😏 Fortunately only 2 source files appear to be affected by this deprecation: |
Looks like those references to strftime are in an SQLite generated query, so doesn't look like either is affected by this deprecation. Also looks like Mockery is waiting on this PR now mockery/mockery#1140 |
Oy! True. I had apparently been staring at too much code when I dug into that. Thanks for pointing it out. 💯 |
Gonna close this to continue the discussion in the related PR. |
We have a working PHP 8.1 build now on the 8.x branch but there are still quite a few build failures which we should try to fix.
https://www.stitcher.io/blog/new-in-php-81
The text was updated successfully, but these errors were encountered: