From 72684b001c24317fab602215b676661b4945eb11 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Thu, 3 Oct 2019 17:45:25 +0200 Subject: [PATCH 1/4] [Validator] Fix ValidValidator group cascading usage --- src/Symfony/Component/Validator/Constraints/ValidValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Validator/Constraints/ValidValidator.php b/src/Symfony/Component/Validator/Constraints/ValidValidator.php index cc10ec5204..695ec82254 100644 --- a/src/Symfony/Component/Validator/Constraints/ValidValidator.php +++ b/src/Symfony/Component/Validator/Constraints/ValidValidator.php @@ -33,6 +33,6 @@ class ValidValidator extends ConstraintValidator $this->context ->getValidator() ->inContext($this->context) - ->validate($value, null, [$this->context->getGroup()]); + ->validate($value, null, $this->context->getGroup()); } } From 2315be85d8e9c063d90dd4f8c5f6dddb016ab843 Mon Sep 17 00:00:00 2001 From: Atthaphon Urairat Date: Fri, 4 Oct 2019 16:41:22 +0700 Subject: [PATCH 2/4] [Validator] Add the missing translations for the Thai (\"th\") locale --- .../Resources/translations/validators.th.xlf | 70 ++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Validator/Resources/translations/validators.th.xlf b/src/Symfony/Component/Validator/Resources/translations/validators.th.xlf index 63ce95ab1b..31aa00cfac 100644 --- a/src/Symfony/Component/Validator/Resources/translations/validators.th.xlf +++ b/src/Symfony/Component/Validator/Resources/translations/validators.th.xlf @@ -204,7 +204,7 @@ This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more. - คอเล็กชั่นนี้ควรจะประกอบไปด้วยอ่างน้อย {{ limit }} สมาชิก + คอเล็กชั่นนี้ควรจะประกอบไปด้วยอย่างน้อย {{ limit }} สมาชิก This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less. @@ -298,6 +298,74 @@ The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed. ภาพนี้เป็นแนวตั้ง ({{ width }}x{{ height }}px) ไม่อนุญาตภาพที่เป็นแนวตั้ง + + An empty file is not allowed. + ไม่อนุญาตให้ใช้ไฟล์ว่าง + + + The host could not be resolved. + ไม่สามารถแก้ไขชื่อโฮสต์ + + + This value does not match the expected {{ charset }} charset. + ค่านี้ไม่ตรงกับการเข้ารหัส {{ charset }} + + + This is not a valid Business Identifier Code (BIC). + นี่ไม่ถูกต้องตามรหัสสำหรับระบุธุรกิจนี้ (BIC) + + + Error + เกิดข้อผิดพลาด + + + This is not a valid UUID. + นี่ไม่ใช่ UUID ที่ถูกต้อง + + + This value should be a multiple of {{ compared_value }}. + ค่านี้ควรเป็น {{ compared_value }} หลายตัว + + + This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}. + รหัสสำหรับระบุธุรกิจนี้ (BIC) ไม่เกี่ยวข้องกับ IBAN {{ iban }} + + + This value should be valid JSON. + ค่านี้ควรอยู่ในรูปแบบ JSON ที่ถูกต้อง + + + This collection should contain only unique elements. + คอเล็กชั่นนี้ควรมีเฉพาะสมาชิกที่ไม่ซ้ำกันเท่านั้น + + + This value should be positive. + ค่านี้ควรเป็นค่าบวก + + + This value should be either positive or zero. + ค่านี้ควรเป็นค่าบวกหรือค่าศูนย์ + + + This value should be negative. + ค่านี้ควรเป็นค่าลบ + + + This value should be either negative or zero. + ค่านี้ควรเป็นค่าลบหรือค่าศูนย์ + + + This value is not a valid timezone. + ค่าเขตเวลาไม่ถูกต้อง + + + This password has been leaked in a data breach, it must not be used. Please use another password. + รหัสผ่านนี้ได้เคยรั่วไหลออกไปโดยถูกการละเมิดข้อมูล ซึ่งไม่ควรนำกลับมาใช้ กรุณาใช้รหัสผ่านอื่น + + + This value should be between {{ min }} and {{ max }}. + ค่านี้ควรอยู่ระหว่าง {{ min }} ถึง {{ max }} + From a84e4e021a31fdd125848552adbba1a6afc3c8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Sun, 6 Oct 2019 21:52:09 +0200 Subject: [PATCH 3/4] Remove useless testCanCheckIfTerminalIsInteractive test case --- .../Component/Console/Tests/ApplicationTest.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index c7e8495265..d61418f37b 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -1587,23 +1587,6 @@ class ApplicationTest extends TestCase $this->assertStringContainsString('The foo:bar command', $tester->getDisplay()); } - /** - * @requires function posix_isatty - */ - public function testCanCheckIfTerminalIsInteractive() - { - $application = new CustomDefaultCommandApplication(); - $application->setAutoExit(false); - - $tester = new ApplicationTester($application); - $tester->run(['command' => 'help']); - - $this->assertFalse($tester->getInput()->hasParameterOption(['--no-interaction', '-n'])); - - $inputStream = $tester->getInput()->getStream(); - $this->assertEquals($tester->getInput()->isInteractive(), @posix_isatty($inputStream)); - } - public function testRunLazyCommandService() { $container = new ContainerBuilder(); From 0272b8d341721c717861ef949cb20ecfac18603e Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 7 Oct 2019 14:36:18 +0200 Subject: [PATCH 4/4] [travis] Fix build-packages script --- .github/build-packages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/build-packages.php b/.github/build-packages.php index 1f59c35276..d859e3ec80 100644 --- a/.github/build-packages.php +++ b/.github/build-packages.php @@ -47,7 +47,7 @@ foreach ($dirs as $k => $dir) { if (isset($preferredInstall[$package->name]) && 'source' === $preferredInstall[$package->name]) { passthru("cd $dir && tar -cf package.tar --exclude='package.tar' *"); } else { - passthru("cd $dir && git init && git add . && git commit -m - && git archive -o package.tar HEAD && rm .git/ -Rf"); + passthru("cd $dir && git init && git add . && git commit --author \"Symfony <>\" -m - && git archive -o package.tar HEAD && rm .git/ -Rf"); } if (!isset($package->extra->{'branch-alias'}->{'dev-master'})) {