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 . '`';
43
+
@trigger_error('Class `' . self::class . '` will declared as final in v3.0.0, stop extending it' . $className . '.', E_USER_DEPRECATED);
44
+
} else {
45
+
@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);
46
+
}
47
+
48
+
parent::__construct($client);
49
+
}
50
+
18
51
/**
19
52
* Returns the list of all custom queries visible by the user (public and private queries) for all projects.
// PHPUnit 10 compatible way to test trigger_error().
40
+
set_error_handler(
41
+
function ($errno, $errstr): bool {
42
+
$this->assertSame(
43
+
'Method `Redmine\Api\Query::__construct()` is deprecated since v2.9.0 and will declared as private in v3.0.0, use `Redmine\Api\Query::fromHttpClient()` instead.',
0 commit comments