Skip to content

Commit ef860ba

Browse files
committed
enable reportMixedTernaryAndCoalesce by default in tests
1 parent 3018907 commit ef860ba

18 files changed

Lines changed: 18 additions & 18 deletions

‎tests/PHPStan/Analyser/Bug9307CallMethodsRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function getRule(): Rule
4848
checkArgumentsPassedByReference: true,
4949
checkExtraArguments: true,
5050
checkMissingTypehints: true,
51-
reportMixedTernaryAndCoalesce: false,
51+
reportMixedTernaryAndCoalesce: true,
5252
),
5353
);
5454
}

‎tests/PHPStan/Rules/Classes/ClassAttributesRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function getRule(): Rule
5151
checkArgumentsPassedByReference: true,
5252
checkExtraArguments: true,
5353
checkMissingTypehints: true,
54-
reportMixedTernaryAndCoalesce: false,
54+
reportMixedTernaryAndCoalesce: true,
5555
),
5656
new ClassNameCheck(
5757
new ClassCaseSensitivityCheck($reflectionProvider, checkInternalClassCaseSensitivity: false),

‎tests/PHPStan/Rules/Classes/ClassConstantAttributesRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function getRule(): Rule
4646
checkArgumentsPassedByReference: true,
4747
checkExtraArguments: true,
4848
checkMissingTypehints: true,
49-
reportMixedTernaryAndCoalesce: false,
49+
reportMixedTernaryAndCoalesce: true,
5050
),
5151
new ClassNameCheck(
5252
new ClassCaseSensitivityCheck($reflectionProvider, checkInternalClassCaseSensitivity: false),

‎tests/PHPStan/Rules/Classes/ForbiddenNameCheckExtensionRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function getRule(): Rule
4747
checkArgumentsPassedByReference: true,
4848
checkExtraArguments: true,
4949
checkMissingTypehints: true,
50-
reportMixedTernaryAndCoalesce: false,
50+
reportMixedTernaryAndCoalesce: true,
5151
),
5252
new ClassNameCheck(
5353
new ClassCaseSensitivityCheck($reflectionProvider, checkInternalClassCaseSensitivity: true),

‎tests/PHPStan/Rules/Classes/InstantiationRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function getRule(): Rule
4949
checkArgumentsPassedByReference: true,
5050
checkExtraArguments: true,
5151
checkMissingTypehints: true,
52-
reportMixedTernaryAndCoalesce: false,
52+
reportMixedTernaryAndCoalesce: true,
5353
),
5454
new ClassNameCheck(
5555
new ClassCaseSensitivityCheck($reflectionProvider, checkInternalClassCaseSensitivity: true),

‎tests/PHPStan/Rules/Constants/ConstantAttributesRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function getRule(): Rule
5252
checkArgumentsPassedByReference: true,
5353
checkExtraArguments: true,
5454
checkMissingTypehints: true,
55-
reportMixedTernaryAndCoalesce: false,
55+
reportMixedTernaryAndCoalesce: true,
5656
),
5757
new ClassNameCheck(
5858
new ClassCaseSensitivityCheck(

‎tests/PHPStan/Rules/EnumCases/EnumCaseAttributesRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function getRule(): Rule
4747
checkArgumentsPassedByReference: true,
4848
checkExtraArguments: true,
4949
checkMissingTypehints: true,
50-
reportMixedTernaryAndCoalesce: false,
50+
reportMixedTernaryAndCoalesce: true,
5151
),
5252
new ClassNameCheck(
5353
new ClassCaseSensitivityCheck($reflectionProvider, checkInternalClassCaseSensitivity: false),

‎tests/PHPStan/Rules/Functions/ArrowFunctionAttributesRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function getRule(): Rule
4646
checkArgumentsPassedByReference: true,
4747
checkExtraArguments: true,
4848
checkMissingTypehints: true,
49-
reportMixedTernaryAndCoalesce: false,
49+
reportMixedTernaryAndCoalesce: true,
5050
),
5151
new ClassNameCheck(
5252
new ClassCaseSensitivityCheck($reflectionProvider, checkInternalClassCaseSensitivity: false),

‎tests/PHPStan/Rules/Functions/Bug14844Test.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function getRule(): Rule
4141
checkArgumentsPassedByReference: true,
4242
checkExtraArguments: true,
4343
checkMissingTypehints: true,
44-
reportMixedTernaryAndCoalesce: false,
44+
reportMixedTernaryAndCoalesce: true,
4545
),
4646
);
4747
}

‎tests/PHPStan/Rules/Functions/CallCallablesRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function getRule(): Rule
4545
checkArgumentsPassedByReference: true,
4646
checkExtraArguments: true,
4747
checkMissingTypehints: true,
48-
reportMixedTernaryAndCoalesce: false,
48+
reportMixedTernaryAndCoalesce: true,
4949
),
5050
$ruleLevelHelper,
5151
reportMaybes: true,

0 commit comments

Comments
 (0)