symfony1
symfony1 copied to clipboard
PHP 8.0 & 8.1
PHP 8.0 & 8.1 compatibility
[No enhancement - please consider to use Symfony5+ for your new Project]
Target : Maintains maximum backward compatibility down to 5.3.
Backport some fixes from PR #265, but I do not use "internal method return type", because use of "mixed" return type is required. But "mixed" keyword is not available before PHP 7.4, use anotation instead. 5f2b710e1fdc74c3a6a1ae6253a9e7680961f9f0
A lot of currently LTS Unix Distro are still running PHP 7.2 / 7.3 currently - and the goal of this repo is to maintain a sf1 running in most setup.
Tests
Great thanks to @alquerci for #262, rebasing with the /test/bin/test dockers tool. Currently pass all test.
For the moment, to run a successful PHP 8.1 test you should remove E_DEPRECATED or use my last commit for Doctrine1 submodule (Until FriendsOfSymfony1/doctrine1#85 be merged ):
PHP version | Dependency | Status |
---|---|---|
php53 | highest | π’ |
php54 | highest | π’ |
php55 | highest | π’ |
php56 | highest | π’ |
php70 | highest | π’ |
php71 | highest | π’ |
php72 | highest | π’ |
php73 | highest | π’ |
php74 | highest | π’ |
php80 | highest | π’ |
php81 | highest | π’ |
Future
One day PHP 9 will break compatibility with php < 7.4 due to the lacks of "mixed" keywords implementations.
Please consider rewriting your project to another framework, like Symfony5+ if your app do not support at least PHP 7.4.
Sorry to be late for the review !
Who is able to merge this pr? As far as I can tell, all requested changes have been fixed.
@Tybaze I would wait for https://github.com/FriendsOfSymfony1/doctrine1/pull/85 to be merged.
In the meantime: can you squash some of the latest commits? (the "apply fix from thePanz", for example, those can go into a single "Apply code-style fixes" together with the other cs-fixes... wdyt? yes, I know, not a good commit message anyway ) :)
Rebased ! Merged coding style review Merged small simplications into one commit.
Removed credits in the comments ^^
Ping, everything should have been fixed or at least be commented. How about merging and releasing this thing? Thanks for your effort, @Tybaze!
Do I need to do anything else to finalize the merge ? @thePanz
Current branch is running very well in production on 8.1 on my projects π
You're welcome @thirsch :-)
@Tybaze : https://github.com/FriendsOfSymfony1/doctrine1/pull/85 got merged, any changes related here?
@Tybaze : FriendsOfSymfony1/doctrine1#85 got merged, any changes related here?
Nothing more βΊοΈ
Maybe we can create a tag in order to help people to know if they have the PH8.1 compatible version ? (also in the Dorctrine repo)
@Tybaze doctrine1 v1.4.0-RC1 has been tagged
Would you please have a look at the https://github.com/FriendsOfSymfony1/doctrine1/pull/89 PR, as it could help with the next releases :)
Same for https://github.com/FriendsOfSymfony1/symfony1/pull/268
I applied some additional changes @Tybaze , and fixed the last failure for the ValidatorFile
GitHub actions are now happy for PHP v7.4, v8.0 and v8.1
Thanks and kudos to @Tybaze for making this possible!
Thanks @thirsch @mentalstring too :+1: