-
Notifications
You must be signed in to change notification settings - Fork 659
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
Php version consistency #6898
Php version consistency #6898
Conversation
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.
BC breaks look avoidable. Conversions from version ID to major/minor need to be fixed, and it would be better to move conversions into its own helper class.
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php
Outdated
Show resolved
Hide resolved
src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php
Outdated
Show resolved
Hide resolved
...ternal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php
Outdated
Show resolved
Hide resolved
6984f20
to
0e1f34b
Compare
I did not pursue this as a change in current version because I really hate the change in order to avoid the BC break. This will probably be something only in Psalm 5... |
I added the Psalm 5 milestone we can use for such PRs / issues. |
70dd8e3
to
b9de5b8
Compare
…rsion` properties Removed in vimeo#6898 (Psalm 5)
b9de5b8
to
effc0ad
Compare
effc0ad
to
8d6b781
Compare
@orklah mind giving this a once-over? I rebased it, removed deprecated properties and documented BC breaks (in |
I'll take a look tonight |
That seems correct. Thanks for the documentation and the rebase <3 |
This brings consistency to the way we use php versions. Before that, sometimes we passed them under the X.Y format, sometimes as two int params and sometimes as an array of two ints...
It also get rid of those horrors:
and it fixes a couple of bugs like
if (\PHP_VERSION_ID < 80100 && $codebase->php_major_version >= 8 && $codebase->php_minor_version >= 1) {
that would have been a problem in version 9.0
However, it's probably a BC break for plugin users...