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:
parent
2b18ac8953
commit
bfb51328fe
1 changed files with 2 additions and 2 deletions
|
@ -742,12 +742,12 @@ App::error()
|
||||||
'file' => $file,
|
'file' => $file,
|
||||||
'line' => $line,
|
'line' => $line,
|
||||||
'trace' => \json_encode($trace, JSON_UNESCAPED_UNICODE) === false ? [] : $trace, // check for failing encode
|
'trace' => \json_encode($trace, JSON_UNESCAPED_UNICODE) === false ? [] : $trace, // check for failing encode
|
||||||
'version' => $version,
|
'version' => APP_VERSION_STABLE,
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
] : [
|
] : [
|
||||||
'message' => $message,
|
'message' => $message,
|
||||||
'code' => $code,
|
'code' => $code,
|
||||||
'version' => $version,
|
'version' => APP_VERSION_STABLE,
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue