From 1a0164c8ed2ddd05a1a9370b521c04a108077760 Mon Sep 17 00:00:00 2001 From: KJ Date: Wed, 30 Oct 2024 11:53:44 -0400 Subject: [PATCH] Change static methods to non-static and made onInvalid public. --- src/Libs/Request.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Libs/Request.php b/src/Libs/Request.php index 4a33e7b..4d2e53d 100644 --- a/src/Libs/Request.php +++ b/src/Libs/Request.php @@ -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);