Releases: psalm/psalm-plugin-wordpress
Releases · psalm/psalm-plugin-wordpress
3.1.1
3.1.0
Add support for additional types of dynamic hook names and add alpha support for Psalm v6
What's Changed
- Add support for additional types of dynamic hook names
- Only report an error for accepted args in add_action/add_filter if psalm does not report InvalidArgument already
- Add support for named
accepted_arguments
inadd_action/add_filter
- Add alpha support for Psalm v6 - the plugin hasn't been tested with psalm v6 yet though, testing + feedback appreciated.
Full Changelog: 3.0.0...3.1.0
3.0.0
Support for Psalm v5 and lots of additional features.
What's Changed
- Bump actions/checkout from 3 to 4 by @dependabot in #48
- Psalm V5 compatibility and features by @kkmuffme in #49
New Contributors
- @dependabot made their first contribution in #48
Full Changelog: 2.2.0...3.0.0
2.2.0
Full Changelog: 2.1.0...2.2.0
What's Changed
- Update stub overrides by @mcaskill in #44
- Add support for
hooks.json
file as candidate for custom hooks - Fix unreachable code after return statement
- Catch exception to prevent plugin crash by @marcosh in #47
- Dependabot updates for GH actions by @weirdan in #46
New Contributors
3.0.0-alpha1
Pre-release for v5 for people who use a fork of this plugin or want to easily contribute making this plugin psalm v5 ready
2.1.0
Full Changelog: 2.0.5...2.1.0
What's Changed
- Updated dependencies by @kkmuffme in #26 #27 #37
- johnbillion/wp-hooks v0.4.4 to wp-hooks/wordpress-core v1.3.0
- php-stubs/wordpress-stubs v5.5 to v6.0
- php-stubs/wp-cli-stubs v2.5 to v2.7
- Added dependency php-stubs/wordpress-globals v0.2 to add WordPress constants to stubs by @kkmuffme in #21
- Added support to disable the hooks provided by this plugin and to define custom hooks by @kkmuffme in #24
- Added support to disable the stubs provided by this plugin by @kkmuffme in #22
- Improved handling of hook types to ensure no parameter data is lost and avoid false positives by @kkmuffme in #32
- Fixed false positives for partially invalid PHPDoc by @kkmuffme in #33
- Improved error handling for common invalid PHPDoc by @kkmuffme in #30
- Added support for handling
do_action_ref_array
andapply_filters_ref_array
hooks by @kkmuffme in #29 - Added support to detect if
add_filter()
was used instead ofadd_action()
by @superdav42 in #19 - Fixed stub overrides (
WP_CLI::add_command()
andhome_url()
) by @ssnepenthe in #15 #36 - Fixed support for
@psalm-suppress
comments by @kkmuffme in #35 - Improved the plugin's Psalm error messages by @kkmuffme in #23
- Added humanmade/coding-standards and fixed coding style errors by @mcaskill in #41
- Added
.phpunit.result.cache
to.gitignore
by @ssnepenthe in #16
New Contributors
- @ssnepenthe made their first contribution in #16
- @superdav42 made their first contribution in #19
- @kkmuffme made their first contribution in #21
- @mcaskill made their first contribution in #41
2.0.5
2.0.4
- Use getcwd() when looking for wordpress-stubs