From 3f200505812c475b72e7e34dbf7535b9d11920b1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 27 Apr 2025 15:02:39 +0200 Subject: [PATCH] Generic/ScopeIndent: fix passed param type Follow up on 1036. The `Config::setConfigData()` expects a `string` for the config value, even though in this case, it will still be cast back to boolean in the ScopeIndent sniff itself. --- src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php | 2 +- src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php index 02bb4cd996..e0d2cf7caa 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php @@ -30,7 +30,7 @@ final class ScopeIndentUnitTest extends AbstractSniffUnitTest */ public function setCliValues($testFile, $config) { - $config->setConfigData('scope_indent_debug', false, true); + $config->setConfigData('scope_indent_debug', '0', true); // Tab width setting is only needed for the tabbed file. if ($testFile === 'ScopeIndentUnitTest.2.inc') { diff --git a/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php b/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php index b6a791e28c..df793342a2 100644 --- a/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ b/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php @@ -30,7 +30,7 @@ final class ScopeIndentUnitTest extends AbstractSniffUnitTest */ public function setCliValues($testFile, $config) { - $config->setConfigData('scope_indent_debug', false, true); + $config->setConfigData('scope_indent_debug', '0', true); }//end setCliValues()