Conversation
|
Of course, |
|
Hi @devnix I don't want to introduce breaking changes so |
|
Thank you! I'm goint to iterate a little bit and I'll ask you a couple of specific questions here and there around the code 😄 |
|
@oscarotero, is the |
|
Also, I'm wondering if you would be OK with adding Rector in another pull request so it can help reach PHPStan level 6 faster, applying each ruleset in granular pull requests. |
It's used by other packages, like PHP-Scanner. |
I'm not familiarized with Rector but if it helps to improve the code quality, it's okay, as long as it keeps compatibility with PHP 7.2 and newer |
Excellent! The pull request should be ready to pass the workflows and be reviewed. Thank you! |
|
It looks like PHPStan will not be installed in versions lower than 7.4. It should not pose a problem since it's just a devDependency. I guess we could invoke PHPStan from Docker and remove the dependency |
|
Can we use 1.x for these versions? I mean |
|
I'm unsure about the differences we will find by running it on different major PHP versions, which can be an interesting check. Can we check the CI again? |
|
I think there is a conflict between the versions shipped into my machine of php-cs-fixer and phpcs, as there is no Also, I'm aware that it's well-known that running php-cs-fixer with different PHP versions can bring very different behaviors, so I might have a couple of suggestions that I can address here or in another pull request if you want:
|
|
Workflows should be green now: https://github.com/devnix/Gettext/actions/runs/14604976659/job/40971880629?pr=1 |
|
Great work! Thanks you! |


Hi @oscarotero, I propose to add PHPStan slowly to improve the type coverage.
It may trigger some architectural questions, for example we are getting this error at level 0:
It's not a big deal to fix, but making the class or the constructor final would be a breaking change, and I have no idea if it follows how you want to keep evolving this library.