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

V5 compatibility and features #49

Merged
merged 14 commits into from
Dec 17, 2023
Merged

Conversation

kkmuffme
Copy link
Collaborator

@kkmuffme kkmuffme commented Nov 29, 2023

@mcaskill finally I had some time to PR it; my fork was quite different already and I had to remove a couple things that are internal, so it took a bit more time.

It's been almost 2 years since I wrote some of the code, and I'm much more familiar with psalm's code base now than I was then, so I already see a variety of things that can be improved upon eventually.

If you could take a quick look and run this branch for a few days in your codebase, to identify any issues/points you want to change upon, that would be great.

Otherwise, I'd say we merge this, and then add/merge the few changes of https://github.com/psalm/psalm-plugin-wordpress/pull/42/files, which aren't part of this PR already, to it (if you don't want to do that, I'm fine to do that chore)

--

This PR adds compatibility with psalm v5, new phpparser version (afair 4.16 or something), support for dynamic hook names, some support for cron hooks, errors for deprecated hooks, handling for hooks without docs, and tons of other stuff.

Fix #18

@kkmuffme kkmuffme mentioned this pull request Nov 29, 2023
@mcaskill
Copy link
Collaborator

I'll try to test it out as soon as possible.

The massive WordPress project I was on has been completed and I'm currently working on non-WordPress projects.

Hopefully, others can test this out.

Thanks for this.

Copy link
Collaborator

@mcaskill mcaskill left a comment

Choose a reason for hiding this comment

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

I've performed a cursory review of the changes. Looks good. A lot to absorb. I've perform a deeper dive as soon as I can.

composer.json Outdated Show resolved Hide resolved
Plugin.php Show resolved Hide resolved
Plugin.php Outdated Show resolved Hide resolved
Plugin.php Show resolved Hide resolved
@kkmuffme kkmuffme force-pushed the v5-compatibility-and-features branch from 869c0ff to 2c82294 Compare December 1, 2023 10:16
@kkmuffme kkmuffme marked this pull request as ready for review December 1, 2023 10:22
@kkmuffme kkmuffme merged commit d286a9f into master Dec 17, 2023
5 checks passed
@kkmuffme kkmuffme deleted the v5-compatibility-and-features branch December 17, 2023 11:15
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.

Plugin hooks deprecation
3 participants