Skip to content

Commit 1277c0c

Browse files
committed
Fix for Psalm.
1 parent 5ffc6ce commit 1277c0c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugins/hwp-previews/psalm.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@
2525
<directory name="src"/>
2626
</errorLevel>
2727
</UndefinedConstant>
28+
<InvalidArgument>
29+
<errorLevel type="suppress">
30+
<file name="src/Hooks/Preview_Hooks.php"/>
31+
</errorLevel>
32+
</InvalidArgument>
2833
</issueHandlers>
2934
</psalm>

plugins/hwp-previews/src/Hooks/Preview_Hooks.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public static function add_filters_actions(): void {
9292
* this must be removed when properly fixed https://github.com/WordPress/gutenberg/issues/13998.
9393
*/
9494
foreach ( self::$types_config->get_public_post_types() as $key => $label ) {
95-
// @psalm-suppress InvalidArgument
9695
add_filter( 'rest_prepare_' . $key, [ self::class, 'filter_rest_prepare_link' ], 10, 2 );
9796
}
9897
}

0 commit comments

Comments
 (0)