Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected static function deprecatedMethod(string $old_method, string $new_class, string $new_method = null): void |
||
27 | { |
||
28 | $namespace = static::getDeprecatedNamespace(); |
||
29 | |||
30 | static::deprecated( |
||
31 | 'The %s::%s() method has been deprecated and will be removed in version %s, use %s::%s() instead.', |
||
32 | $namespace, |
||
33 | $old_method, |
||
34 | static::$next_version, |
||
35 | $new_class, |
||
36 | $new_method ?: $old_method |
||
37 | ); |
||
50 |