Skip to content

Commit 4da0323

Browse files
author
Lars Roettig
committed
29: [New Rule] Exceptions handling
1 parent 969af90 commit 4da0323

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Magento/Sniffs/Functions/ThrowCatchSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ public function process(File $phpcsFile, $stackPtr)
9292
}
9393
}
9494
}
95-
}
95+
}

Magento/Tests/Functions/ThrowCatchUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ $d = function ($data) {
157157
// Rule find: Exceptions MUST NOT handled in same function
158158
// handle $exception code
159159
}
160-
};
160+
};

Magento/Tests/Functions/ThrowCatchUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ protected function getWarningList()
3434
156 => 1
3535
];
3636
}
37-
}
37+
}

Magento/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<rule ref="Magento.Exceptions.Namespace">
7373
<severity>8</severity>
7474
</rule>
75-
<rule ref="Magento.Functions.ThrowCatchSniff">
75+
<rule ref="Magento.Functions.ThrowCatch">
7676
<severity>8</severity>
7777
</rule>
7878
<rule ref="Magento.Functions.StaticFunction">

0 commit comments

Comments
 (0)