mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-06 19:41:13 -05:00
* PHPStan level 6 for all PDO and Exception classes Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 * Fix type * Now also our remaining own librairies * Motivation for a few more files * A few more DAO classes * Last interface
17 lines
382 B
PHP
17 lines
382 B
PHP
<?php
|
|
class Minz_Exception extends Exception {
|
|
const ERROR = 0;
|
|
const WARNING = 10;
|
|
const NOTICE = 20;
|
|
|
|
public function __construct(string $message, int $code = self::ERROR) {
|
|
if ($code != Minz_Exception::ERROR
|
|
&& $code != Minz_Exception::WARNING
|
|
&& $code != Minz_Exception::NOTICE) {
|
|
$code = Minz_Exception::ERROR;
|
|
}
|
|
|
|
parent::__construct ($message, $code);
|
|
}
|
|
}
|