Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Satini_pvduc
/
daito-utils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Satini_pvduc
2026-07-11 12:14:23 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
49353e6e74118c4b777b2a7b0a52abba697f27d2
49353e6e
1 parent
dbf65d6d
remove default validation msg for 422 code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/DaitoResponse.php
src/DaitoResponse.php
View file @
49353e6
...
...
@@ -68,7 +68,7 @@ class DaitoResponse
/**
* Build a validation failed payload with HTTP 422 default.
*/
public
static
function
validateFail
(
array
$arrErrors
,
$message
=
'
Validation failed
'
,
$statusCode
=
422
)
public
static
function
validateFail
(
array
$arrErrors
,
$message
=
''
,
$statusCode
=
422
)
{
return
self
::
fail
(
$message
,
...
...
@@ -82,7 +82,7 @@ class DaitoResponse
/**
* Build a validation failed payload and return JSON string.
*/
public
static
function
validateFailJson
(
array
$arrErrors
,
$message
=
'
Validation failed
'
,
$statusCode
=
422
)
public
static
function
validateFailJson
(
array
$arrErrors
,
$message
=
''
,
$statusCode
=
422
)
{
return
self
::
toJson
(
self
::
validateFail
(
$arrErrors
,
$message
,
$statusCode
));
}
...
...
Please
register
or
sign in
to post a comment