Skip to content

Commit 16eee58

Browse files
committed
fix tests
1 parent 20a5164 commit 16eee58

9 files changed

+10
-10
lines changed

tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class DoWhileLoopConstantConditionRuleTest extends RuleTestCase
1212
{
1313

14-
private bool $treatPhpDocTypesAsCertain = true;
14+
private true $treatPhpDocTypesAsCertain = true;
1515

1616
protected function getRule(): Rule
1717
{

tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
class LogicalXorConstantConditionRuleTest extends RuleTestCase
1212
{
1313

14-
private bool $treatPhpDocTypesAsCertain;
14+
private true $treatPhpDocTypesAsCertain;
1515

16-
private bool $reportAlwaysTrueInLastCondition = false;
16+
private false $reportAlwaysTrueInLastCondition = false;
1717

1818
protected function getRule(): TRule
1919
{

tests/PHPStan/Rules/Comparison/WhileLoopAlwaysFalseConditionRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class WhileLoopAlwaysFalseConditionRuleTest extends RuleTestCase
1212
{
1313

14-
private bool $treatPhpDocTypesAsCertain = true;
14+
private true $treatPhpDocTypesAsCertain = true;
1515

1616
protected function getRule(): Rule
1717
{

tests/PHPStan/Rules/Comparison/WhileLoopAlwaysTrueConditionRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class WhileLoopAlwaysTrueConditionRuleTest extends RuleTestCase
1212
{
1313

14-
private bool $treatPhpDocTypesAsCertain = true;
14+
private true $treatPhpDocTypesAsCertain = true;
1515

1616
protected function getRule(): Rule
1717
{

tests/PHPStan/Rules/Exceptions/TooWideFunctionThrowTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class TooWideFunctionThrowTypeRuleTest extends RuleTestCase
1212
{
1313

14-
private bool $implicitThrows = true;
14+
private true $implicitThrows = true;
1515

1616
protected function getRule(): Rule
1717
{

tests/PHPStan/Rules/Exceptions/TooWidePropertyHookThrowTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class TooWidePropertyHookThrowTypeRuleTest extends RuleTestCase
1414
{
1515

16-
private bool $implicitThrows = true;
16+
private true $implicitThrows = true;
1717

1818
protected function getRule(): Rule
1919
{

tests/PHPStan/Rules/Functions/ArrayValuesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class ArrayValuesRuleTest extends RuleTestCase
1313
{
1414

15-
private bool $treatPhpDocTypesAsCertain = true;
15+
private true $treatPhpDocTypesAsCertain = true;
1616

1717
protected function getRule(): Rule
1818
{

tests/PHPStan/Rules/Variables/CompactVariablesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class CompactVariablesRuleTest extends RuleTestCase
1212
{
1313

14-
private bool $checkMaybeUndefinedVariables;
14+
private true $checkMaybeUndefinedVariables;
1515

1616
protected function getRule(): Rule
1717
{

tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class NullCoalesceRuleTest extends RuleTestCase
1717
{
1818

19-
private bool $treatPhpDocTypesAsCertain;
19+
private true $treatPhpDocTypesAsCertain;
2020

2121
protected function getRule(): Rule
2222
{

0 commit comments

Comments
 (0)