You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$className = (new \ReflectionClass($this))->isAnonymous() ? '' : ' in `' . static::class . '`';
48
+
@trigger_error('Class `' . self::class . '` will declared as final in v3.0.0, stop extending it' . $className . '.', E_USER_DEPRECATED);
49
+
} else {
50
+
@trigger_error('Method `' . __METHOD__ . '()` is deprecated since v2.9.0 and will declared as private in v3.0.0, use `' . self::class . '::fromHttpClient()` instead.', E_USER_DEPRECATED);
$className = (new \ReflectionClass($this))->isAnonymous() ? '' : ' in `' . static::class . '`';
53
+
@trigger_error('Class `' . self::class . '` will declared as final in v3.0.0, stop extending it' . $className . '.', E_USER_DEPRECATED);
54
+
} else {
55
+
@trigger_error('Method `' . __METHOD__ . '()` is deprecated since v2.9.0 and will declared as private in v3.0.0, use `' . self::class . '::fromHttpClient()` instead.', E_USER_DEPRECATED);
// PHPUnit 10 compatible way to test trigger_error().
41
+
set_error_handler(
42
+
function ($errno, $errstr): bool {
43
+
$this->assertSame(
44
+
'Method `Redmine\Api\TimeEntryActivity::__construct()` is deprecated since v2.9.0 and will declared as private in v3.0.0, use `Redmine\Api\TimeEntryActivity::fromHttpClient()` instead.',
// PHPUnit 10 compatible way to test trigger_error().
41
+
set_error_handler(
42
+
function ($errno, $errstr): bool {
43
+
$this->assertSame(
44
+
'Method `Redmine\Api\TimeEntry::__construct()` is deprecated since v2.9.0 and will declared as private in v3.0.0, use `Redmine\Api\TimeEntry::fromHttpClient()` instead.',
0 commit comments