Skip to content

Commit d691982

Browse files
committed
Fix for Psalm error.
1 parent edec4b0 commit d691982

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ 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 PossiblyInvalidArgument
9596
add_filter( 'rest_prepare_' . $key, [ self::class, 'filter_rest_prepare_link' ], 10, 2 );
9697
}
9798
}

0 commit comments

Comments
 (0)