Skip to content

Commit ab4e75b

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: (22 commits) fix merge [AssetMapper] Check asset/vendor directory is writable detect wrong e-mail validation modes detect wrong usages of minMessage/maxMessage in options [Security] Remove workflow from empty folder read form values using the chain data accessor [Validator] Review Bulgarian (bg) translation Reviewed italian translation Fix french translation call substr() with integer offsets [Finder] Also consider .git inside the basedir of in() directory review: FR translation [Serializer] Add AbstractNormalizerContextBuilder::defaultConstructorArguments() Update spanish and catalan translations Update AbstractSchemaListener.php to adjust more database params Updated id=113 Arabic translation. #53771 Updated validator Lithuanian translations review: translation RU [PropertyInfo] Fix PHPStan properties type in trait explicitly cast boolean SSL stream options ...
2 parents 34a4580 + 4761a08 commit ab4e75b

15 files changed

+114
-79
lines changed

Constraints/Email.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public function __construct(
5555
throw new InvalidArgumentException('The "mode" parameter value is not valid.');
5656
}
5757

58+
if (null !== $mode && !\in_array($mode, self::VALIDATION_MODES, true)) {
59+
throw new InvalidArgumentException('The "mode" parameter value is not valid.');
60+
}
61+
5862
parent::__construct($options, $groups, $payload);
5963

6064
$this->message = $message ?? $this->message;

Constraints/Range.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(
8787
throw new LogicException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "minPropertyPath" or "maxPropertyPath" option. Try running "composer require symfony/property-access".', static::class));
8888
}
8989

90-
if (null !== $this->min && null !== $this->max && ($minMessage || $maxMessage)) {
90+
if (null !== $this->min && null !== $this->max && ($minMessage || $maxMessage || isset($options['minMessage']) || isset($options['maxMessage']))) {
9191
throw new ConstraintDefinitionException(sprintf('The "%s" constraint can not use "minMessage" and "maxMessage" when the "min" and "max" options are both set. Use "notInRangeMessage" instead.', static::class));
9292
}
9393
}

Resources/translations/validators.ar.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
</trans-unit>
441441
<trans-unit id="113">
442442
<source>This URL is missing a top-level domain.</source>
443-
<target state="needs-review-translation">هذا الرابط يفتقر إلى نطاق أعلى مستوى.</target>
443+
<target>هذا الرابط يفتقر إلى نطاق المستوى الأعلى.</target>
444444
</trans-unit>
445445
</body>
446446
</file>

Resources/translations/validators.bg.xlf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</trans-unit>
6969
<trans-unit id="17">
7070
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
71-
<target>Mime типа на файла е невалиден ({{ type }}). Разрешени mime типове са {{ types }}.</target>
71+
<target>Mime типът на файла е невалиден ({{ type }}). Разрешени mime типове са {{ types }}.</target>
7272
</trans-unit>
7373
<trans-unit id="18">
7474
<source>This value should be {{ limit }} or less.</source>
@@ -136,7 +136,7 @@
136136
</trans-unit>
137137
<trans-unit id="37" resname="This is not a valid IP address.">
138138
<source>This value is not a valid IP address.</source>
139-
<target state="needs-review-translation">Тази стойност не е валиден IP адрес.</target>
139+
<target>Стойността не е валиден IP адрес.</target>
140140
</trans-unit>
141141
<trans-unit id="38">
142142
<source>This value is not a valid language.</source>
@@ -156,7 +156,7 @@
156156
</trans-unit>
157157
<trans-unit id="42">
158158
<source>The size of the image could not be detected.</source>
159-
<target>Размера на изображението не може да бъде определен.</target>
159+
<target>Размерът на изображението не може да бъде определен.</target>
160160
</trans-unit>
161161
<trans-unit id="43">
162162
<source>The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.</source>
@@ -192,7 +192,7 @@
192192
</trans-unit>
193193
<trans-unit id="51" resname="No temporary folder was configured in php.ini.">
194194
<source>No temporary folder was configured in php.ini, or the configured folder does not exist.</source>
195-
<target state="needs-review-translation">В php.ini не е конфигурирана временна директория, или конфигурираната директория не съществува.</target>
195+
<target>В php.ini не е конфигурирана временна директория или конфигурираната директория не съществува.</target>
196196
</trans-unit>
197197
<trans-unit id="52">
198198
<source>Cannot write temporary file to disk.</source>
@@ -224,7 +224,7 @@
224224
</trans-unit>
225225
<trans-unit id="59" resname="This is not a valid International Bank Account Number (IBAN).">
226226
<source>This value is not a valid International Bank Account Number (IBAN).</source>
227-
<target state="needs-review-translation">Тази стойност не е валиден международен банков сметка номер (IBAN).</target>
227+
<target>Стойността не е валиден Международен номер на банкова сметка (IBAN).</target>
228228
</trans-unit>
229229
<trans-unit id="60">
230230
<source>This value is not a valid ISBN-10.</source>
@@ -312,23 +312,23 @@
312312
</trans-unit>
313313
<trans-unit id="81" resname="This is not a valid Business Identifier Code (BIC).">
314314
<source>This value is not a valid Business Identifier Code (BIC).</source>
315-
<target state="needs-review-translation">Тази стойност не е валиден код за идентификация на бизнеса (BIC).</target>
315+
<target>Стойността не е валиден Бизнес идентификационен код (BIC).</target>
316316
</trans-unit>
317317
<trans-unit id="82">
318318
<source>Error</source>
319319
<target>Грешка</target>
320320
</trans-unit>
321321
<trans-unit id="83" resname="This is not a valid UUID.">
322322
<source>This value is not a valid UUID.</source>
323-
<target state="needs-review-translation">Тази стойност не е валиден UUID.</target>
323+
<target>Стойността не е валиден UUID.</target>
324324
</trans-unit>
325325
<trans-unit id="84">
326326
<source>This value should be a multiple of {{ compared_value }}.</source>
327327
<target>Стойността трябва да бъде кратно число на {{ compared_value }}.</target>
328328
</trans-unit>
329329
<trans-unit id="85">
330330
<source>This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.</source>
331-
<target>Бизнес идентификационния код (BIC) не е свързан с IBAN {{ iban }}.</target>
331+
<target>Бизнес идентификационният код (BIC) не е свързан с IBAN {{ iban }}.</target>
332332
</trans-unit>
333333
<trans-unit id="86">
334334
<source>This value should be valid JSON.</source>
@@ -360,7 +360,7 @@
360360
</trans-unit>
361361
<trans-unit id="93">
362362
<source>This password has been leaked in a data breach, it must not be used. Please use another password.</source>
363-
<target>Тази парола е компрометирана, не трябва да бъде използвана. Моля използвайте друга парола.</target>
363+
<target>Тази парола е компрометирана, не може да бъде използвана. Моля използвайте друга парола.</target>
364364
</trans-unit>
365365
<trans-unit id="94">
366366
<source>This value should be between {{ min }} and {{ max }}.</source>
@@ -436,11 +436,11 @@
436436
</trans-unit>
437437
<trans-unit id="112">
438438
<source>This value is not a valid MAC address.</source>
439-
<target state="needs-review-translation">Тази стойност не е валиден MAC адрес.</target>
439+
<target>Стойността не е валиден MAC адрес.</target>
440440
</trans-unit>
441441
<trans-unit id="113">
442442
<source>This URL is missing a top-level domain.</source>
443-
<target state="needs-review-translation">На този URL липсва домейн от най-високо ниво.</target>
443+
<target>На този URL липсва домейн от най-високо ниво.</target>
444444
</trans-unit>
445445
</body>
446446
</file>

Resources/translations/validators.ca.xlf

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@
108108
</trans-unit>
109109
<trans-unit id="27">
110110
<source>This value is not a valid URL.</source>
111-
<target>Aquest valor no és una URL vàlida.</target>
111+
<target>Aquest valor no és un URL vàlid.</target>
112112
</trans-unit>
113113
<trans-unit id="31">
114114
<source>The two values should be equal.</source>
115115
<target>Els dos valors haurien de ser iguals.</target>
116116
</trans-unit>
117117
<trans-unit id="32">
118118
<source>The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.</source>
119-
<target>L'arxiu és massa gran. El tamany màxim permés és {{ limit }} {{ suffix }}.</target>
119+
<target>L'arxiu és massa gran. La mida màxima permesa és {{ limit }} {{ suffix }}.</target>
120120
</trans-unit>
121121
<trans-unit id="33">
122122
<source>The file is too large.</source>
@@ -136,7 +136,7 @@
136136
</trans-unit>
137137
<trans-unit id="37" resname="This is not a valid IP address.">
138138
<source>This value is not a valid IP address.</source>
139-
<target state="needs-review-translation">Aquest valor no és una adreça IP vàlida.</target>
139+
<target>Aquest valor no és una adreça IP vàlida.</target>
140140
</trans-unit>
141141
<trans-unit id="38">
142142
<source>This value is not a valid language.</source>
@@ -160,19 +160,19 @@
160160
</trans-unit>
161161
<trans-unit id="43">
162162
<source>The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.</source>
163-
<target>L'amplària de la imatge és massa gran ({{ width }}px). L'amplària màxima permesa són {{ max_width }}px.</target>
163+
<target>L'amplària de la imatge és massa gran ({{ width }}px). L'amplària màxima permesa és {{ max_width }}px.</target>
164164
</trans-unit>
165165
<trans-unit id="44">
166166
<source>The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.</source>
167-
<target>L'amplària de la imatge és massa petita ({{ width }}px). L'amplària mínima requerida són {{ min_width }}px.</target>
167+
<target>L'amplària de la imatge és massa petita ({{ width }}px). L'amplària mínima requerida és {{ min_width }}px.</target>
168168
</trans-unit>
169169
<trans-unit id="45">
170170
<source>The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.</source>
171-
<target>L'altura de la imatge és massa gran ({{ height }}px). L'altura màxima permesa són {{ max_height }}px.</target>
171+
<target>L'altura de la imatge és massa gran ({{ height }}px). L'altura màxima permesa és {{ max_height }}px.</target>
172172
</trans-unit>
173173
<trans-unit id="46">
174174
<source>The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.</source>
175-
<target>L'altura de la imatge és massa petita ({{ height }}px). L'altura mínima requerida són {{ min_height }}px.</target>
175+
<target>L'altura de la imatge és massa petita ({{ height }}px). L'altura mínima requerida és {{ min_height }}px.</target>
176176
</trans-unit>
177177
<trans-unit id="47">
178178
<source>This value should be the user's current password.</source>
@@ -192,15 +192,15 @@
192192
</trans-unit>
193193
<trans-unit id="51" resname="No temporary folder was configured in php.ini.">
194194
<source>No temporary folder was configured in php.ini, or the configured folder does not exist.</source>
195-
<target state="needs-review-translation">No s'ha configurat cap carpeta temporal en php.ini, o la carpeta configurada no existeix.</target>
195+
<target>No s'ha configurat cap carpeta temporal en php.ini, o la carpeta configurada no existeix.</target>
196196
</trans-unit>
197197
<trans-unit id="52">
198198
<source>Cannot write temporary file to disk.</source>
199199
<target>No es va poder escriure l'arxiu temporal en el disc.</target>
200200
</trans-unit>
201201
<trans-unit id="53">
202202
<source>A PHP extension caused the upload to fail.</source>
203-
<target>Una extensió de PHP va fer que la pujada fallara.</target>
203+
<target>Una extensió de PHP va fer que la pujada fallarà.</target>
204204
</trans-unit>
205205
<trans-unit id="54">
206206
<source>This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.</source>
@@ -224,7 +224,7 @@
224224
</trans-unit>
225225
<trans-unit id="59" resname="This is not a valid International Bank Account Number (IBAN).">
226226
<source>This value is not a valid International Bank Account Number (IBAN).</source>
227-
<target state="needs-review-translation">Aquest valor no és un Número de Compte Bancari Internacional (IBAN) vàlid.</target>
227+
<target>Aquest valor no és un Número de Compte Bancari Internacional (IBAN) vàlid.</target>
228228
</trans-unit>
229229
<trans-unit id="60">
230230
<source>This value is not a valid ISBN-10.</source>
@@ -276,31 +276,31 @@
276276
</trans-unit>
277277
<trans-unit id="72">
278278
<source>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</source>
279-
<target>Aquest valor no hauria de idèntic a {{ compared_value_type }} {{ compared_value }}.</target>
279+
<target>Aquest valor no hauria de ser idèntic a {{ compared_value_type }} {{ compared_value }}.</target>
280280
</trans-unit>
281281
<trans-unit id="73">
282282
<source>The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.</source>
283-
<target>La proporció de l'imatge és massa gran ({{ ratio }}). La màxima proporció permesa és {{ max_ratio }}.</target>
283+
<target>La proporció de la imatge és massa gran ({{ ratio }}). La màxima proporció permesa és {{ max_ratio }}.</target>
284284
</trans-unit>
285285
<trans-unit id="74">
286286
<source>The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.</source>
287-
<target>La proporció de l'imatge és massa petita ({{ ratio }}). La mínima proporció permesa és {{ max_ratio }}.</target>
287+
<target>La proporció de la imatge és massa petita ({{ ratio }}). La mínima proporció permesa és {{ min_ratio }}.</target>
288288
</trans-unit>
289289
<trans-unit id="75">
290290
<source>The image is square ({{ width }}x{{ height }}px). Square images are not allowed.</source>
291-
<target>L'imatge és quadrada({{ width }}x{{ height }}px). Les imatges quadrades no estan permeses.</target>
291+
<target>La imatge és quadrada({{ width }}x{{ height }}px). Les imatges quadrades no estan permeses.</target>
292292
</trans-unit>
293293
<trans-unit id="76">
294294
<source>The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.</source>
295-
<target>L'imatge està orientada horitzontalment ({{ width }}x{{ height }}px). Les imatges orientades horitzontalment no estan permeses.</target>
295+
<target>La imatge està orientada horitzontalment ({{ width }}x{{ height }}px). Les imatges orientades horitzontalment no estan permeses.</target>
296296
</trans-unit>
297297
<trans-unit id="77">
298298
<source>The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.</source>
299-
<target>L'imatge està orientada verticalment ({{ width }}x{{ height }}px). Les imatges orientades verticalment no estan permeses.</target>
299+
<target>La imatge està orientada verticalment ({{ width }}x{{ height }}px). Les imatges orientades verticalment no estan permeses.</target>
300300
</trans-unit>
301301
<trans-unit id="78">
302302
<source>An empty file is not allowed.</source>
303-
<target>No està permès un fixter buit.</target>
303+
<target>No està permès un fitxer buit.</target>
304304
</trans-unit>
305305
<trans-unit id="79">
306306
<source>The host could not be resolved.</source>
@@ -312,15 +312,15 @@
312312
</trans-unit>
313313
<trans-unit id="81" resname="This is not a valid Business Identifier Code (BIC).">
314314
<source>This value is not a valid Business Identifier Code (BIC).</source>
315-
<target state="needs-review-translation">Aquest valor no és un Codi d'Identificador de Negocis (BIC) vàlid.</target>
315+
<target>Aquest valor no és un Codi d'identificació bancari (BIC) vàlid.</target>
316316
</trans-unit>
317317
<trans-unit id="82">
318318
<source>Error</source>
319319
<target>Error</target>
320320
</trans-unit>
321321
<trans-unit id="83" resname="This is not a valid UUID.">
322322
<source>This value is not a valid UUID.</source>
323-
<target state="needs-review-translation">Aquest valor no és un UUID vàlid.</target>
323+
<target>Aquest valor no és un UUID vàlid.</target>
324324
</trans-unit>
325325
<trans-unit id="84">
326326
<source>This value should be a multiple of {{ compared_value }}.</source>
@@ -428,19 +428,19 @@
428428
</trans-unit>
429429
<trans-unit id="110">
430430
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431-
<target state="needs-review-translation">L'extensió del fitxer no és vàlida ({{ extension }}). Les extensions permeses són {{ extensions }}.</target>
431+
<target>L'extensió del fitxer no és vàlida ({{ extension }}). Les extensions permeses són {{ extensions }}.</target>
432432
</trans-unit>
433433
<trans-unit id="111">
434434
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435-
<target state="needs-review-translation">S'ha detectat que la codificació de caràcters no és vàlida ({{ detected }}). Les codificacions permeses són {{ encodings }}.</target>
435+
<target>S'ha detectat que la codificació de caràcters no és vàlida ({{ detected }}). Les codificacions permeses són {{ encodings }}.</target>
436436
</trans-unit>
437437
<trans-unit id="112">
438438
<source>This value is not a valid MAC address.</source>
439-
<target state="needs-review-translation">Aquest valor no és una adreça MAC vàlida.</target>
439+
<target>Aquest valor no és una adreça MAC vàlida.</target>
440440
</trans-unit>
441441
<trans-unit id="113">
442442
<source>This URL is missing a top-level domain.</source>
443-
<target state="needs-review-translation">Aquesta URL no conté un domini de nivell superior.</target>
443+
<target>Aquesta URL no conté un domini de primer nivell.</target>
444444
</trans-unit>
445445
</body>
446446
</file>

0 commit comments

Comments
 (0)