Change static methods to non-static and made onInvalid public.
This commit is contained in:
parent
ad9f8ec67d
commit
1a0164c8ed
@ -97,7 +97,7 @@ class Request extends Neuron {
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function rules(): array {
|
public function rules(): array {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ class Request extends Neuron {
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function paramRules(): array {
|
public function paramRules(): array {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ class Request extends Neuron {
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function getRules(): array {
|
public function getRules(): array {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ class Request extends Neuron {
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function messages(): array {
|
public function messages(): array {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ class Request extends Neuron {
|
|||||||
*
|
*
|
||||||
* @return false
|
* @return false
|
||||||
*/
|
*/
|
||||||
protected function onInvalid(string $error): false
|
public function onInvalid(string $error): false
|
||||||
{
|
{
|
||||||
http_response_code(422);
|
http_response_code(422);
|
||||||
print($error);
|
print($error);
|
||||||
|
Loading…
Reference in New Issue
Block a user