Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
f4fec1f to
7fd8cde
Compare
| } | ||
| add_filter( 'wp_image_editors', 'dominant_color_set_image_editors' ); | ||
|
|
||
| /** |
There was a problem hiding this comment.
| /** | |
| /* |
Seems it's local variable so do we needs to use multiline comment per https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments
There was a problem hiding this comment.
I don't think that's right. Without /** then the phpdoc is not parsed.
There was a problem hiding this comment.
The docs you link to are talking about a regular multiline comment, not one that serves as a doc block.
See #775.
This fixes the following PHPStan issues:
Note that PHPStan is correctly identifying a bug here which could cause a fatal error in case another plugin is filtering
wp_image_editorsso that our specific subclasses are not used.