Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24c805a

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: docs: Update@param for $match to reflect the correct default value. [Validator] add pl translation for the Twig constraint dump default value for property hooks if present
2 parentsd9d3d6a +6bd461b commit24c805a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎src/Symfony/Component/Validator/Constraints/Regex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Regex extends Constraint
3939
/**
4040
* @param string|array<string,mixed>|null $pattern The regular expression to match
4141
* @param string|null $htmlPattern The pattern to use in the HTML5 pattern attribute
42-
* @param bool|null $match Whether to validate the value matches the configured pattern or not (defaults tofalse)
42+
* @param bool|null $match Whether to validate the value matches the configured pattern or not (defaults totrue)
4343
* @param string[]|null $groups
4444
* @param array<string,mixed>|null $options
4545
*/

‎src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
</trans-unit>
473473
<trans-unitid="121">
474474
<source>This value is not a valid Twig template.</source>
475-
<targetstate="needs-translation">This value is not a valid Twig template.</target>
475+
<target>Ta wartość nie jest prawidłowym szablonem Twig.</target>
476476
</trans-unit>
477477
</body>
478478
</file>

‎src/Symfony/Component/VarExporter/ProxyHelper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public static function generateLazyGhost(\ReflectionClass $class): string
8585
$hooks .="\n"
8686
.($p->isProtected() ?'protected' :'public')
8787
.($p->isProtectedSet() ?' protected(set)' :'')
88-
."{$type}\${$name} {\n";
88+
."{$type}\${$name}"
89+
.($p->hasDefaultValue() ?' ='.$p->getDefaultValue() :'')
90+
." {\n";
8991

9092
foreach ($p->getHooks()as$hook =>$method) {
9193
if ('get' ===$hook) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp