Skip to content

Commit 8c74972

Browse files
committed
Update PHP minimum version to 8.0 and dependencies to latest compatible version
1 parent e80e4b8 commit 8c74972

File tree

21 files changed

+63
-69
lines changed

21 files changed

+63
-69
lines changed
0 Bytes
Binary file not shown.

lang/en_US/LC_MESSAGES/validators.po

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: Platine Validator 1.0.0\n"
4-
"POT-Creation-Date: 2025-08-07 04:06+0100\n"
5-
"PO-Revision-Date: 2025-08-07 04:06+0100\n"
4+
"POT-Creation-Date: 2025-11-14 01:27+0100\n"
5+
"PO-Revision-Date: 2025-11-14 01:27+0100\n"
66
"Last-Translator: Tony NGUEREZA <nguerezatony@gmail.com>\n"
77
"Language-Team: Platine Team\n"
88
"Language: en_US\n"
@@ -35,27 +35,27 @@ msgstr ""
3535
msgid "%s must contain alphanumeric characters, - and _"
3636
msgstr ""
3737

38-
#: Rule/Date.php:93
38+
#: Rule/Date.php:86
3939
#, php-format
4040
msgid "%s must contain a correct date format [%s]!"
4141
msgstr ""
4242

43-
#: Rule/DateAfter.php:102
43+
#: Rule/DateAfter.php:90
4444
#, php-format
4545
msgid "%s must be after or equal to the date [%s]!"
4646
msgstr ""
4747

48-
#: Rule/DateAfter.php:109
48+
#: Rule/DateAfter.php:97
4949
#, php-format
5050
msgid "%s must be after the date [%s]!"
5151
msgstr ""
5252

53-
#: Rule/DateBefore.php:102
53+
#: Rule/DateBefore.php:90
5454
#, php-format
5555
msgid "%s must be before or equal to the date [%s]!"
5656
msgstr ""
5757

58-
#: Rule/DateBefore.php:109
58+
#: Rule/DateBefore.php:97
5959
#, php-format
6060
msgid "%s must be before the date [%s]!"
6161
msgstr ""
@@ -65,17 +65,17 @@ msgstr ""
6565
msgid "%s must be a valid email address!"
6666
msgstr ""
6767

68-
#: Rule/Enum.php:96 Rule/InList.php:92
68+
#: Rule/Enum.php:98 Rule/InList.php:85
6969
#, php-format
7070
msgid "%s must be one of the following (%s)!"
7171
msgstr ""
7272

73-
#: Rule/Equal.php:89
73+
#: Rule/Equal.php:82
7474
#, php-format
7575
msgid "%s must to be equal to [%s]!"
7676
msgstr ""
7777

78-
#: Rule/ExactLength.php:92
78+
#: Rule/ExactLength.php:85
7979
#, php-format
8080
msgid "%s must contain exactly %d characters!"
8181
msgstr ""
@@ -100,47 +100,47 @@ msgstr ""
100100
msgid "%s must be an integer!"
101101
msgstr ""
102102

103-
#: Rule/Matches.php:90
103+
#: Rule/Matches.php:83
104104
#, php-format
105105
msgid "%s must be identical to field %s!"
106106
msgstr ""
107107

108-
#: Rule/Max.php:92
108+
#: Rule/Max.php:85
109109
#, php-format
110110
msgid "%s must be less or equal to [%s]!"
111111
msgstr ""
112112

113-
#: Rule/MaxLength.php:92
113+
#: Rule/MaxLength.php:85
114114
#, php-format
115115
msgid "%s must contain at most %d characters!"
116116
msgstr ""
117117

118-
#: Rule/Min.php:92
118+
#: Rule/Min.php:85
119119
#, php-format
120120
msgid "%s must be greather or equal to [%s]!"
121121
msgstr ""
122122

123-
#: Rule/MinLength.php:86 Rule/Password.php:140
123+
#: Rule/MinLength.php:85 Rule/Password.php:140
124124
#, php-format
125125
msgid "%s must contain at least %d characters!"
126126
msgstr ""
127127

128-
#: Rule/Natural.php:81
128+
#: Rule/Natural.php:89
129129
#, php-format
130-
msgid "%s must be a natural number (0, 1, 2, )!"
130+
msgid "%s must be a natural number started by %d !"
131131
msgstr ""
132132

133133
#: Rule/NotEmpty.php:78
134134
#, php-format
135135
msgid "%s must not to be empty!"
136136
msgstr ""
137137

138-
#: Rule/NotEqual.php:83
138+
#: Rule/NotEqual.php:82
139139
#, php-format
140140
msgid "%s must not to be equal to [%s]!"
141141
msgstr ""
142142

143-
#: Rule/NotMatches.php:84
143+
#: Rule/NotMatches.php:83
144144
#, php-format
145145
msgid "%s must not to be identical to field %s!"
146146
msgstr ""
@@ -170,12 +170,12 @@ msgstr ""
170170
msgid "%s should include at least one special character!"
171171
msgstr ""
172172

173-
#: Rule/Range.php:87
173+
#: Rule/Range.php:85
174174
#, php-format
175175
msgid "%s must be between %s and %s!"
176176
msgstr ""
177177

178-
#: Rule/Regex.php:87
178+
#: Rule/Regex.php:86
179179
#, php-format
180180
msgid "%s does not use the correct format!"
181181
msgstr ""
9 Bytes
Binary file not shown.

lang/fr_FR/LC_MESSAGES/validators.po

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: Platine Validator 1.0.0\n"
4-
"POT-Creation-Date: 2025-08-07 04:06+0100\n"
5-
"PO-Revision-Date: 2025-08-07 04:06+0100\n"
4+
"POT-Creation-Date: 2025-11-14 01:27+0100\n"
5+
"PO-Revision-Date: 2025-11-14 01:28+0100\n"
66
"Last-Translator: Tony NGUEREZA <nguerezatony@gmail.com>\n"
77
"Language-Team: Platine Team\n"
88
"Language: fr_FR\n"
@@ -35,27 +35,27 @@ msgstr "%s doit contenir des caractères alphanumériques !"
3535
msgid "%s must contain alphanumeric characters, - and _"
3636
msgstr "%s doit contenir des caractères alphanumériques, - et _"
3737

38-
#: Rule/Date.php:93
38+
#: Rule/Date.php:86
3939
#, php-format
4040
msgid "%s must contain a correct date format [%s]!"
4141
msgstr "%s doit contenir un format de date correct [%s] !"
4242

43-
#: Rule/DateAfter.php:102
43+
#: Rule/DateAfter.php:90
4444
#, php-format
4545
msgid "%s must be after or equal to the date [%s]!"
4646
msgstr "%s doit être égale ou après la date [%s] !"
4747

48-
#: Rule/DateAfter.php:109
48+
#: Rule/DateAfter.php:97
4949
#, php-format
5050
msgid "%s must be after the date [%s]!"
5151
msgstr "%s doit être après la date [%s] !"
5252

53-
#: Rule/DateBefore.php:102
53+
#: Rule/DateBefore.php:90
5454
#, php-format
5555
msgid "%s must be before or equal to the date [%s]!"
5656
msgstr "%s doit être antérieur ou égale à la date [%s] !"
5757

58-
#: Rule/DateBefore.php:109
58+
#: Rule/DateBefore.php:97
5959
#, php-format
6060
msgid "%s must be before the date [%s]!"
6161
msgstr "%s doit être antérieur à la date [%s] !"
@@ -65,17 +65,17 @@ msgstr "%s doit être antérieur à la date [%s] !"
6565
msgid "%s must be a valid email address!"
6666
msgstr "%s doit être une adresse e-mail valide !"
6767

68-
#: Rule/Enum.php:96 Rule/InList.php:92
68+
#: Rule/Enum.php:98 Rule/InList.php:85
6969
#, php-format
7070
msgid "%s must be one of the following (%s)!"
7171
msgstr "%s doit être l'un des suivants (%s) !"
7272

73-
#: Rule/Equal.php:89
73+
#: Rule/Equal.php:82
7474
#, php-format
7575
msgid "%s must to be equal to [%s]!"
7676
msgstr "%s doit être égal à [%s] !"
7777

78-
#: Rule/ExactLength.php:92
78+
#: Rule/ExactLength.php:85
7979
#, php-format
8080
msgid "%s must contain exactly %d characters!"
8181
msgstr "%s doit contenir exactement %d caractères !"
@@ -100,47 +100,47 @@ msgstr "%s doit être une adresse IPv6 valide !"
100100
msgid "%s must be an integer!"
101101
msgstr "%s doit être un entier !"
102102

103-
#: Rule/Matches.php:90
103+
#: Rule/Matches.php:83
104104
#, php-format
105105
msgid "%s must be identical to field %s!"
106106
msgstr "%s doit être identique au champ %s !"
107107

108-
#: Rule/Max.php:92
108+
#: Rule/Max.php:85
109109
#, php-format
110110
msgid "%s must be less or equal to [%s]!"
111111
msgstr "%s doit être inférieur ou égal à [%s] !"
112112

113-
#: Rule/MaxLength.php:92
113+
#: Rule/MaxLength.php:85
114114
#, php-format
115115
msgid "%s must contain at most %d characters!"
116116
msgstr "%s doit contenir au plus %d caractères !"
117117

118-
#: Rule/Min.php:92
118+
#: Rule/Min.php:85
119119
#, php-format
120120
msgid "%s must be greather or equal to [%s]!"
121121
msgstr "%s doit être supérieur ou égal à [%s] !"
122122

123-
#: Rule/MinLength.php:86 Rule/Password.php:140
123+
#: Rule/MinLength.php:85 Rule/Password.php:140
124124
#, php-format
125125
msgid "%s must contain at least %d characters!"
126126
msgstr "%s doit contenir au moins %d caractères !"
127127

128-
#: Rule/Natural.php:81
128+
#: Rule/Natural.php:89
129129
#, php-format
130-
msgid "%s must be a natural number (0, 1, 2, )!"
131-
msgstr "%s doit être un nombre naturel (0, 1, 2, ) !"
130+
msgid "%s must be a natural number started by %d !"
131+
msgstr "%s doit être un nombre naturel commençant par %d !"
132132

133133
#: Rule/NotEmpty.php:78
134134
#, php-format
135135
msgid "%s must not to be empty!"
136136
msgstr "%s ne doit pas être vide !"
137137

138-
#: Rule/NotEqual.php:83
138+
#: Rule/NotEqual.php:82
139139
#, php-format
140140
msgid "%s must not to be equal to [%s]!"
141141
msgstr "%s ne doit pas être égal à [%s] !"
142142

143-
#: Rule/NotMatches.php:84
143+
#: Rule/NotMatches.php:83
144144
#, php-format
145145
msgid "%s must not to be identical to field %s!"
146146
msgstr "%s ne doit pas être identique au champ %s !"
@@ -170,12 +170,12 @@ msgstr "%s doit comporter au moins un chiffre !"
170170
msgid "%s should include at least one special character!"
171171
msgstr "%s doit comporter au moins un caractère spécial !"
172172

173-
#: Rule/Range.php:87
173+
#: Rule/Range.php:85
174174
#, php-format
175175
msgid "%s must be between %s and %s!"
176176
msgstr "%s doit être compris entre %s et %s !"
177177

178-
#: Rule/Regex.php:87
178+
#: Rule/Regex.php:86
179179
#, php-format
180180
msgid "%s does not use the correct format!"
181181
msgstr "%s n'utilise pas le bon format !"

src/Rule/Date.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class Date implements RuleInterface
6161
*/
6262
public function __construct(protected string $format = 'Y-m-d')
6363
{
64-
$this->format = $format;
6564
}
6665

6766
/**

src/Rule/DateAfter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ class DateAfter implements RuleInterface
6060
* @param string $date the date format to compare against
6161
* @param bool $include whether the given date is included or not
6262
*/
63-
public function __construct(protected string $date, protected bool $include = false)
64-
{
65-
$this->date = $date;
66-
$this->include = $include;
63+
public function __construct(
64+
protected string $date,
65+
protected bool $include = false
66+
) {
6767
}
6868

6969
/**

src/Rule/DateBefore.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ class DateBefore implements RuleInterface
6060
* @param string $date the date format to compare against
6161
* @param bool $include whether the given date is included or not
6262
*/
63-
public function __construct(protected string $date, protected bool $include = false)
64-
{
65-
$this->date = $date;
66-
$this->include = $include;
63+
public function __construct(
64+
protected string $date,
65+
protected bool $include = false
66+
) {
6767
}
6868

6969
/**

src/Rule/Enum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class Enum implements RuleInterface
6969
*/
7070
public function __construct(protected string $enumClass)
7171
{
72-
$this->enumClass = $enumClass;
7372
}
7473

7574
/**

src/Rule/Equal.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class Equal implements RuleInterface
6161
*/
6262
public function __construct(protected mixed $value)
6363
{
64-
$this->value = $value;
6564
}
6665

6766
/**

src/Rule/ExactLength.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class ExactLength implements RuleInterface
6161
*/
6262
public function __construct(protected int $length)
6363
{
64-
$this->length = $length;
6564
}
6665

6766
/**

0 commit comments

Comments
 (0)