From 55b18c6bbb3804d9934571ddc1706094f40b3f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20PH=E2=91=A6=20de=20Soria=E2=84=A2=E2=99=9B?= Date: Mon, 11 Nov 2024 09:36:57 +1100 Subject: [PATCH] Add explanatory comment Showing to my Udemy student they can also declare a class constant with a data type if they use PHP 8.3 or newer. By default, this PHP RESTful API project supports PHP 8.2 as the earliest version (so, not compatible with typed class constants) . --- src/Validation/UserValidation.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Validation/UserValidation.php b/src/Validation/UserValidation.php index 8241e47..31fe5ff 100644 --- a/src/Validation/UserValidation.php +++ b/src/Validation/UserValidation.php @@ -1,4 +1,10 @@ validate($this->data); } -} \ No newline at end of file +}