Fix exception class in mailpoet custom sniff

[MAILPOET-1542]
This commit is contained in:
Rostislav Wolný
2018-10-11 14:02:05 +02:00
parent 469dc15e4d
commit ca3b6412ee

View File

@ -14,7 +14,7 @@
*/
if (class_exists('PHP_CodeSniffer\Sniffs\AbstractPatternSniff', true) === false) {
throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer\Sniffs\AbstractPatternSniff not found');
throw new \PHP_CodeSniffer\Exceptions\RuntimeException('Class PHP_CodeSniffer\Sniffs\AbstractPatternSniff not found');
}
/**