Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/bleedingEdge.neon
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ parameters:
switchConditionAlwaysFalse: true
checkImportedClassNameCase: true
sortWithoutEffect: true
stringReplaceWithoutEffect: true
8 changes: 8 additions & 0 deletions conf/config.level4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ conditionalTags:
phpstan.rules.rule: %featureToggles.finiteTypesInHaystack%
PHPStan\Rules\Comparison\SwitchConditionRule:
phpstan.rules.rule: %featureToggles.switchConditionAlwaysFalse%
PHPStan\Rules\Functions\StringReplaceWithoutEffectRule:
phpstan.rules.rule: %featureToggles.stringReplaceWithoutEffect%

parameters:
checkAdvancedIsset: true
Expand Down Expand Up @@ -49,3 +51,9 @@ services:
class: PHPStan\Rules\Comparison\SwitchConditionRule
arguments:
treatPhpDocTypesAsCertain: %treatPhpDocTypesAsCertain%

-
class: PHPStan\Rules\Functions\StringReplaceWithoutEffectRule
arguments:
treatPhpDocTypesAsCertain: %treatPhpDocTypesAsCertain%
treatPhpDocTypesAsCertainTip: %tips.treatPhpDocTypesAsCertain%
1 change: 1 addition & 0 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ parameters:
switchConditionAlwaysFalse: false
checkImportedClassNameCase: false
sortWithoutEffect: false
stringReplaceWithoutEffect: false
fileExtensions:
- php
checkAdvancedIsset: false
Expand Down
1 change: 1 addition & 0 deletions conf/parametersSchema.neon
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ parametersSchema:
switchConditionAlwaysFalse: bool()
checkImportedClassNameCase: bool()
sortWithoutEffect: bool()
stringReplaceWithoutEffect: bool()
])
fileExtensions: listOf(string())
checkAdvancedIsset: bool()
Expand Down
Loading
Loading