Skip to content

Commit 3f20050

Browse files
committed
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.
1 parent 7fb48d6 commit 3f20050

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ScopeIndentUnitTest extends AbstractSniffUnitTest
3030
*/
3131
public function setCliValues($testFile, $config)
3232
{
33-
$config->setConfigData('scope_indent_debug', false, true);
33+
$config->setConfigData('scope_indent_debug', '0', true);
3434

3535
// Tab width setting is only needed for the tabbed file.
3636
if ($testFile === 'ScopeIndentUnitTest.2.inc') {

src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ScopeIndentUnitTest extends AbstractSniffUnitTest
3030
*/
3131
public function setCliValues($testFile, $config)
3232
{
33-
$config->setConfigData('scope_indent_debug', false, true);
33+
$config->setConfigData('scope_indent_debug', '0', true);
3434

3535
}//end setCliValues()
3636

0 commit comments

Comments
 (0)