-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Modernize codebase for PHP 8 #1351
Conversation
f2ac883
to
39171dd
Compare
@@ -35,7 +35,7 @@ public function getConfiguration(): Configuration | |||
|
|||
try { | |||
$config = Yaml::parse($content); | |||
} catch (ParseException $e) { | |||
} catch (ParseException) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we rather attach it as a previous exception, so that the user can see the actual parsing issue ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but that's out if scope for this PR. We can do this in a follow-up.
141a298
to
5be5221
Compare
BC check failure:
I think those changes are safe. We've only ever accepted those types anyway and existing child classes that override this method without parameter types should continue to work. |
5be5221
to
94e8016
Compare
* 3.7.x: (21 commits) Allow doctrine/deprecations 1.0 (doctrine#1358) Drop support for Symfony 4 (doctrine#1352) Modernize codebase for PHP 8 (doctrine#1351) Remove docs from the archives (doctrine#1356) Ditch action in favor of running tool directly (doctrine#1354) Fix PHPStan errors after PHPUnit update (doctrine#1350) Add sh to .gitattributes Update .gitattributes Avoid complex mock building Migrate to PHPUnit 10 Make data providers static Remove unneeded phpcs rule Suffix abstract test class with TestCase Add details to sync-metadata-storage's help Update coding standard to v12 Remove ignore rule for @method-provided method build: Use the new compactors build: Fix cleanup of the backup composer lock file Add attributes to commands removed preceding whitespace in front of colons ...
Summary
We require PHP 8.1 already, so let's use what PHP 8 has to offer for us.