Skip to content
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

Update jetbrains/phpstorm-stubs from 2022.2 to 2023.3 as minimal version #1389

Merged

Conversation

DanielBadura
Copy link
Contributor

Due to not having an up to date shim version and instead needing to require this repository as no other solution is there at this moment, see here #1345, this package is blocking from installing it alongside other packages.

@DanielBadura
Copy link
Contributor Author

Not sure why the Composer Diff workflow is crashing. composer.lock is still there and also updated 🤔

Any ideas @gennadigennadigennadi ?

@patrickkusebauch
Copy link
Collaborator

Doesn't your change make it stricter? AIIRC the original let's you install either 2022.2 or 2022.3 and your change will let you install only 2022.3. Am I missing something?

@DanielBadura
Copy link
Contributor Author

DanielBadura commented Mar 8, 2024

I update from 2022 to 2023.

EDIT: so next major version, i guess :D

@patrickkusebauch
Copy link
Collaborator

Apparently I am missing that I am blind. If the intention is to enable to install either version, can we specify it as such in the version constraint?

@DanielBadura
Copy link
Contributor Author

The goal was not to enable either version but to update from my pov.

I'm not sure, if allowing both versions is desired here. These are stubs, so only adding some more/better meta information so imho it just should be the newest version. BUT im not sure where this is used here and why tbh. But can also adjust the require to allow both versions.

@patrickkusebauch
Copy link
Collaborator

My reasoning is as follows:

  • You don't use the shim/phar version because it did not release in a long time but use the source directly. This is something others are likely to do as well (for example I do this too)
  • You have a conflict with ^2022.2 in your source and therefore want ^2023.3.
  • We upgrade to ^2023.3
  • Others will have a conflict with ^2023.3 because they need ^2022.2 for the same reason as you need ^2023.3
  • If we upgrade to ^2022.2 || ^2023.3, it enables both you an others. It will install what is allowed and needed by other requirements, but preferring the newer version.

My intention is to not break stuff for others while fixing it for you.

@DanielBadura
Copy link
Contributor Author

I know where you are coming from, but imho it should not be a real issue. They could also update, since updating this dependency should not really break anything (bold statement, i know). But i can change it - no problem.

But as you already said. The main reason is the not available releases and because of that such updates are cumbersome.

Copy link
Collaborator

@patrickkusebauch patrickkusebauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@DanielBadura
Copy link
Contributor Author

But whats with this failing workflow? :D

@patrickkusebauch
Copy link
Collaborator

Don't worry about it. If fails anytime somebody from a fork updates composer.lock.

@gennadigennadigennadi gennadigennadigennadi merged commit b90e349 into qossmic:main Mar 8, 2024
18 of 19 checks passed
@gennadigennadigennadi
Copy link
Member

@DanielBadura thank you for your contribution and your patience 😅.

@DanielBadura DanielBadura deleted the update-phpstorm-stubs branch March 8, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants