1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00

fix: version in error response

The APP_VERSION_STABLE constant should be used for the version
in API errors so that developers see a version that makes more
sense (such as 1.5.5).
This commit is contained in:
Steven Nguyen 2024-04-29 22:50:20 +00:00 committed by GitHub
parent 2b18ac8953
commit bfb51328fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -742,12 +742,12 @@ App::error()
'file' => $file,
'line' => $line,
'trace' => \json_encode($trace, JSON_UNESCAPED_UNICODE) === false ? [] : $trace, // check for failing encode
'version' => $version,
'version' => APP_VERSION_STABLE,
'type' => $type,
] : [
'message' => $message,
'code' => $code,
'version' => $version,
'version' => APP_VERSION_STABLE,
'type' => $type,
];