| 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 | 4 | */ |
|
| 33 | public function getReturnClass(): string |
||
| 34 | 4 | { |
|
| 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 | ); |
||
| 41 | 4 | ||
| 42 | @\trigger_error($message, \E_USER_DEPRECATED); |
||
| 43 | 4 | ||
| 44 | return parent::getReturnClass(); |
||
| 47 |