-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor, improvement and PHP 8.1 only #7
Refactor, improvement and PHP 8.1 only #7
Conversation
…ent, Psalm, Coding Standard, and Infection. A new major release is needed, compatibility is broken because the new constructor is private.
@alexcrawford to be clear, this PR is a proposal for a new major release of this library. Up to you if you are interested in it: it was done in good faith, to improve the API, stability and behaviour of the library. I asked @guidobonuzzi to contribute it back to your original project, rather than having us maintain a private fork: hope it is well perceived 👍 |
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.
LGTM: mostly needs small CI and artifact -related changes
Looks interesting - I will do some integration testing tomorrow. Is it good practice to commit |
I added @Ocramius, what is the right answer? |
Ignore my last, I see it's still listed in .gitignore. I should have had my morning coffee before looking at it! |
FWIW, I endorse committing it, but only in combination with lowest+latest CI pipelines. The pipeline I proposed @guidobonuzzi to include yesterday has that feature 👍 |
CI won't work here until merged (due to GitHub security model - that's normal). Meanwhile, here are the CI run results on the fork: https://github.com/KanbanBOX/lexorank-php/actions/runs/3198936467 |
It's impressive how simple it is to implement! Thank you @Ocramius |
Worked on it for a couple years @_@ |
composer.json
Outdated
@@ -10,7 +10,7 @@ | |||
], | |||
"type": "project", | |||
"require": { | |||
"php": ">=8.1", | |||
"php": ">=8.0", |
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.
Let's please use ^8.0
- we don't know if PHP 9.0 will be compatible :D
I also endorse ~8.0 || ~8.1
, as explained in laminas/laminas-diactoros#117 (comment)
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.
@guidobonuzzi important to fix this previous to merge BTW
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.
Handled in 6a3df83
That was quick :O |
Merged and released as |
Thanks @guidobonuzzi @alexcrawford! 🥳 |
Thanks! |
FYI as I stumbled upon this: ~8.0 === ^8.0 |
Argh, indeed @_@ |
This PR includes:
between
,after
,before
,forEmptySequence
,fromString
rankValidator
with new ExceptionsA new major release is needed, compatibility is broken because the new constructor is private.