-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Prepare for PHP 7.4 preload #32054
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
Prepare for PHP 7.4 preload #32054
Conversation
This PR was merged into the 4.4 branch. Discussion ---------- Prepare for PHP 7.4 preload | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - PHP 7.4 preloading is not compatible with declaring the same class twice in if/else blocks. Let's split the ones we have in several files. Commits ------- 7cf3fb4 Prepare for PHP 7.4 preload
class LogicException extends \LogicException implements Psr6CacheInterface, SimpleCacheInterface | ||
{ | ||
} | ||
require __DIR__.\DIRECTORY_SEPARATOR.'LogicException-psr16.php'; |
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.
@nicolas-grekas Shouldn't this be:
require __DIR__.\DIRECTORY_SEPARATOR.'LogicException+psr16.php';
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.
oops you're right, could you please send a PR on branch 4.4 to fix it?
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.
Done, I hope I did it right.
#32082
…muller) This PR was merged into the 4.4 branch. Discussion ---------- [CACHE] Correct required file added in #32054 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32054 | License | MIT | Doc PR | symfony/symfony-docs Just a little fix of the filename required for the preload feature. Commits ------- d04a3b3 [CACHE] Correct required file added in #32054
* 4.4: [FrameworkBundle] minor: fix typo in SessionTest [Debug] workaround BC break in PHP 7.3 [CACHE] Correct required file added in #32054 remove bc break code
…grekas)" (nicolas-grekas) This PR was merged into the 4.4 branch. Discussion ---------- Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)" | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32032 | License | MIT | Doc PR | - This reverts commit a0aa941, reversing changes made to 8496003. This change is incompatible with Composer's class map generation. Commits ------- 8a1813a Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)"
* 4.4: Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)"
PHP 7.4 preloading is not compatible with declaring the same class twice in if/else blocks.
Let's split the ones we have in several files.