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