Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
20 | public function __construct($message = '', $code = 0, ?Throwable $previous = null) |
||
21 | { |
||
22 | if (self::class !== static::class) { |
||
23 | @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED); |
||
|
|||
24 | } |
||
25 | parent::__construct($message, $code, $previous); |
||
26 | } |
||
27 | |||
43 |
If you suppress an error, we recommend checking for the error condition explicitly: