Skip to content

Commit 1e48a79

Browse files
authored
Update RequestValidatorTransformFactory.php
1 parent ad45339 commit 1e48a79

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Transformer/RequestValidatorTransformFactory.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55

66
final class RequestValidatorTransformFactory implements ResultTransformerInterface
77
{
8+
public function __construct(?private string $message = null) {
9+
print "In BaseClass constructor\n";
10+
}
11+
812
public function transform(array $errors): array
913
{
1014
return [
11-
'message' => 'Please check your input',
15+
'message' => is_null(this->message) ? 'Please check your input' : this->message,
1216
'error' => $errors,
1317
];
1418
}

0 commit comments

Comments
 (0)