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 PHPStorm stubs and patch #3393

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

VincentLanglet
Copy link
Contributor

No description provided.

@VincentLanglet VincentLanglet force-pushed the updateStubs branch 9 times, most recently from 40ec86a to 6ae71fe Compare September 3, 2024 10:07
{
$newStmts = [];
foreach ($stmts as $stmt) {
- assert($stmt instanceof Node\Stmt\ClassConst || $stmt instanceof Node\Stmt\Property || $stmt instanceof Node\Stmt\ClassMethod);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A fix need to be done in ondrejmirtes/better-reflection because @since is also use on enum
cf JetBrains/phpstorm-stubs@2630c46#diff-ef8aa905e0656e00a12783a18d25215a90772b1e75e3a18f3e4815ef9c68ccf4R41

but since it's a fork of Roave/BetterReflection I'm not sure how you deal with such situation @ondrejmirtes :

  • Should I open a PR on your repo ?
  • Should I open a PR on Roave/BetterReflection directly ? And you'll cherry-pick after the merge on Roave/BetterReflection ?
  • Should I do both ?

Copy link
Member

Choose a reason for hiding this comment

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

Just open it on Roave, I regularly rebase on top of them.

Copy link
Contributor Author

@VincentLanglet VincentLanglet Sep 5, 2024

Choose a reason for hiding this comment

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

My fix is merged on Roave Roave/BetterReflection@31b5dd1

Now, if you have time @ondrejmirtes, I need a rebase on your fork (and a new tag) in order to finish this PR :)

Copy link
Member

Choose a reason for hiding this comment

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

@VincentLanglet Done, you can rebase and continue your work :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I think the PR is ready then.

@VincentLanglet VincentLanglet force-pushed the updateStubs branch 2 times, most recently from 91d67df to fa18ed4 Compare September 5, 2024 15:53
@VincentLanglet VincentLanglet marked this pull request as ready for review September 5, 2024 16:20
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 2e345b8 into phpstan:1.12.x Sep 5, 2024
485 of 500 checks passed
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.

None yet

3 participants