diff options
author | Andrew Dolgov <[email protected]> | 2023-04-09 21:29:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-09 21:29:16 +0300 |
commit | d7c070b22bc187db45b20937a85fbf01d652ee7c (patch) | |
tree | 4e08641e7019c435176f7954fc2eefcd99e5f08a /backend.php | |
parent | c1b3c99667c743d63317748d6338647eaf213184 (diff) |
make phpstan happy
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 9fa30db38..8b3a3e061 100644 --- a/backend.php +++ b/backend.php @@ -52,6 +52,7 @@ header("Content-Type: text/json"); print Errors::to_json(Errors::E_UNAUTHORIZED); + $scope->getSpan()->setTag('error', Errors::E_UNAUTHORIZED); $scope->close(); return; } @@ -60,6 +61,8 @@ if (Config::is_migration_needed()) { print Errors::to_json(Errors::E_SCHEMA_MISMATCH); + + $scope->getSpan()->setTag('error', Errors::E_SCHEMA_MISMATCH); $scope->close(); return; } @@ -122,11 +125,14 @@ user_error("Refusing to invoke method $method of handler $op which starts with underscore.", E_USER_WARNING); header("Content-Type: text/json"); print Errors::to_json(Errors::E_UNAUTHORIZED); + + $scope->getSpan()->setTag('error', Errors::E_UNAUTHORIZED); $scope->close(); return; } if ($override) { + /** @var Plugin|IHandler|ICatchall $handler */ $handler = $override; } else { $reflection = new ReflectionClass($op); |