Fix Psalm errors

This commit is contained in:
Daniel Dudzic 2024-04-10 19:27:17 +02:00
parent e289ed4679
commit a8b67fbc91
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 6 additions and 5 deletions

View file

@ -102,7 +102,7 @@ class PayLaterBlockModule implements ModuleInterface {
register_block_type(
dirname( realpath( __FILE__ ), 2 ),
array(
'render_callback' => function ( $attributes ) use ( $c ) {
'render_callback' => function ( array $attributes ) use ( $c ) {
$renderer = $c->get( 'paylater-block.renderer' );
ob_start();
// phpcs:ignore -- No need to escape it, the PayLaterBlockRenderer class is responsible for escaping.