Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | */ |
||
33 | 4 | public function getReturnClass(): string |
|
34 | { |
||
35 | 4 | $message = $this->message ?? \sprintf( |
|
36 | 4 | 'Using `%s` outside of the `%s` scope is deprecated and will be impossible in version %s.', |
|
37 | 4 | $this->interface, |
|
38 | 4 | $this->scope instanceof \BackedEnum ? $this->scope->value : $this->scope, |
|
39 | 4 | $this->version, |
|
40 | 4 | ); |
|
41 | |||
42 | 4 | @\trigger_error($message, \E_USER_DEPRECATED); |
|
43 | |||
44 | 4 | return parent::getReturnClass(); |
|
47 |