From 8b99c439b73755cdd238bebc93aa857fe00266fc Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Fri, 30 Aug 2024 20:35:35 -0500 Subject: [PATCH] Disable phpcs rule for brackets and phpstan fix --- .phpcs.xml | 4 ++++ src/Pods/Blocks/Types/Base.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 4f73fb0ad4..ff512bfc91 100755 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -42,6 +42,10 @@ + + + + diff --git a/src/Pods/Blocks/Types/Base.php b/src/Pods/Blocks/Types/Base.php index c17c63991a..a5d342d817 100644 --- a/src/Pods/Blocks/Types/Base.php +++ b/src/Pods/Blocks/Types/Base.php @@ -229,7 +229,7 @@ public function is_preloading_block() { */ public function should_preload_block( $attributes = [], $block = null ) { /** - * Allow filtering whether to preload the block. + * Allow filtering whether to preload the Pods block. * * @since 2.8.8 * @@ -238,7 +238,7 @@ public function should_preload_block( $attributes = [], $block = null ) { * @param WP_Block|null $block The WP_Block object or null if not provided. * @param Base $block_type The block type object (not WP_Block). */ - return (bool) apply_filters( 'pods_blocks_types_preload_block', true, $this ); + return (bool) apply_filters( 'pods_blocks_types_preload_block', true, $attributes, $block, $this ); } /**