We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 937bf3e commit bf7648cCopy full SHA for bf7648c
packages/PostRector/Application/PostFileProcessor.php
@@ -64,7 +64,12 @@ private function sortByPriority(array $postRectors): array
64
65
foreach ($postRectors as $postRector) {
66
if (isset($postRectorsByPriority[$postRector->getPriority()])) {
67
- throw new ShouldNotHappenException();
+ $errorMessage = sprintf(
68
+ 'There are multiple post rectors with the same priority: %d. Use different one for your new PostRector',
69
+ $postRector->getPriority()
70
+ );
71
+
72
+ throw new ShouldNotHappenException($errorMessage);
73
}
74
75
$postRectorsByPriority[$postRector->getPriority()] = $postRector;
0 commit comments