-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Make code more modern and implement php 7.4 type declarations #44
Comments
Updated mimumum PHP version to 7.4 and tried to add 8.0 to CI
@GeeH need some help on this? |
i also could help to improve the PSR-12 Coding Style and Type-Hint. |
@GeeH @ppaulis is it possible that I can divide myself into it? Because doing something twice is more or less pointless. |
@nusphere I'm waiting for some maintainer input here to avoid doing the work at the same time than someone else. |
Thank you for your feedback. in the meantime i have tried other components, as there is basically a lot to do. Doing double the job makes absolutely no sense. I am happy to help with this task, but I am now trying to create the basis for such a refactoring by helping to provide the GitHub Actions in the components. |
Hi, huge apologies, real life took over. I'm happy to get back involved here but would you be able to roundup what you need from me please @nusphere ? |
@GeeH In the meantime, we dropped v4.0.0 as having a new major version in the service manager would lead to a huge amount of work in almost every other component which works with the servicemanager directly (e.g. due to the usage of Another thing is a proper migration path for the Thus said, I don't think it makes sense to approach type-safety or PHP 7.4 type declarations without having a proper strategy on how we want to proceed with this component. |
Just a side note for the one who will implement this, the return-type of |
Closed with #191 |
[x] add
declare(strict_types=1)
to all src and test files[x] add parameter type declarations where appropriate
[x] add return type declarations where appropriate
[ ] add property types
[ ] update code style to PSR-12
[ ] Update composer dependencies including PHPUnit to modern versions
[ ] rejoice in a job well done
The text was updated successfully, but these errors were encountered: