From 69f3d84a9ed8b1cd205cc6f17263010875c243d0 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <23417+roborourke@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:23:34 +0100 Subject: [PATCH] Allow null for stackPtr in check_compare_value method Declared type should be nullable when default is set. --- HM/Sniffs/Performance/SlowMetaQuerySniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HM/Sniffs/Performance/SlowMetaQuerySniff.php b/HM/Sniffs/Performance/SlowMetaQuerySniff.php index d5950e3a..16c6bcce 100644 --- a/HM/Sniffs/Performance/SlowMetaQuerySniff.php +++ b/HM/Sniffs/Performance/SlowMetaQuerySniff.php @@ -264,7 +264,7 @@ protected function get_array_indices( int $array_start, int $array_end ) : array * * @param string $compare Comparison value */ - protected function check_compare_value( string $compare, int $stackPtr = null ) : void { + protected function check_compare_value( string $compare, ?int $stackPtr = null ) : void { if ( empty( $stackPtr ) ) { $stackPtr = $this->stackPtr; }