Skip to content

Commit d13ff77

Browse files
committed
use consistent name in config
1 parent 10cc452 commit d13ff77

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/Rules/Classes/DisallowClassesRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function processNode(Node $node, Scope $scope): array
3838

3939
return [
4040
RuleErrorBuilder::message($errorMessage)
41-
->identifier('PHPStanFp.disallowClasses')
41+
->identifier('phpstanFunctionalProgramming.disallowClasses')
4242
->build()
4343
];
4444
}

src/Rules/Exceptions/DisallowThrowRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function processNode(Node $node, Scope $scope): array
3838

3939
return [
4040
RuleErrorBuilder::message($errorMessage)
41-
->identifier('PHPStanFp.disallowThrow')
41+
->identifier('phpstanFunctionalProgramming.disallowThrow')
4242
->build()
4343
];
4444
}

src/Rules/Expression/DisallowUnusedExpressionRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function processNode(Node $node, Scope $scope): array
4040

4141
return [
4242
RuleErrorBuilder::message('Enforce that an expression gets used')
43-
->identifier('PHPStanFp.disallowUnusedExpression')
43+
->identifier('phpstanFunctionalProgramming.disallowUnusedExpression')
4444
->build()
4545
];
4646
}

src/Rules/Functions/DisallowMutatingFunctionsRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function processNode(Node $node, Scope $scope): array
7272

7373
return [
7474
RuleErrorBuilder::message($errorMessage)
75-
->identifier('PHPStanFp.disallowMutatingFunctions')
75+
->identifier('phpstanFunctionalProgramming.disallowMutatingFunctions')
7676
->build()
7777
];
7878
}

src/Rules/Loops/DisallowLoopsRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function processNode(Node $node, Scope $scope): array
3030

3131
return [
3232
RuleErrorBuilder::message("Should not use loop {$this->getLoopType()}")
33-
->identifier('PHPStanFp.disallowLoops')
33+
->identifier('phpstanFunctionalProgramming.disallowLoops')
3434
->build()
3535
];
3636
}

src/Rules/Variables/DisallowMutationRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function buildError(): IdentifierRuleError
6060
$errorMessage = 'Should not use of mutating operators';
6161

6262
return RuleErrorBuilder::message($errorMessage)
63-
->identifier('PHPStanFp.disallowVariablesMutation')
63+
->identifier('phpstanFunctionalProgramming.disallowVariablesMutation')
6464
->build();
6565
}
6666
}

0 commit comments

Comments
 (0)