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
|
||||
*/
|
||||
public static function rules(): array {
|
||||
public function rules(): array {
|
||||
return [];
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ class Request extends Neuron {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function paramRules(): array {
|
||||
public function paramRules(): array {
|
||||
return [];
|
||||
}
|
||||
|
||||
@ -115,7 +115,7 @@ class Request extends Neuron {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getRules(): array {
|
||||
public function getRules(): array {
|
||||
return [];
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ class Request extends Neuron {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function messages(): array {
|
||||
public function messages(): array {
|
||||
return [];
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ class Request extends Neuron {
|
||||
*
|
||||
* @return false
|
||||
*/
|
||||
protected function onInvalid(string $error): false
|
||||
public function onInvalid(string $error): false
|
||||
{
|
||||
http_response_code(422);
|
||||
print($error);
|
||||
|
Loading…
Reference in New Issue
Block a user