From 9b43cf4a53b22056576937dacee3e2732fd442b4 Mon Sep 17 00:00:00 2001 From: OhMyFelix Date: Wed, 4 Mar 2026 16:43:22 +0000 Subject: [PATCH 1/2] chore: remove Kodiak config --- .github/.kodiak.toml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .github/.kodiak.toml diff --git a/.github/.kodiak.toml b/.github/.kodiak.toml deleted file mode 100644 index 60c34b6f..00000000 --- a/.github/.kodiak.toml +++ /dev/null @@ -1,10 +0,0 @@ -version = 1 - -[merge] -automerge_label = "automerge" -blacklist_title_regex = "^WIP.*" -blacklist_labels = ["WIP"] -method = "rebase" -delete_branch_on_merge = true -notify_on_conflict = true -optimistic_updates = false From 07081f4bebad340a913e44d4867ba403f139852c Mon Sep 17 00:00:00 2001 From: OhMyFelix Date: Fri, 6 Mar 2026 16:46:27 +0000 Subject: [PATCH 2/2] fix: stabilize CI after Symfony 8 update Switch validator test fixtures to the Symfony 8 Length constructor and run make init in the PHP 8.5 workflow so clean CI checkouts have the expected local config. --- .github/workflows/tests.yml | 1 + tests/Cases/Symfony/Validator/Mocks/UserPojo.php | 2 +- tests/Cases/Symfony/Validator/Validator.simple.phpt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6dc90550..65274a68 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,6 +16,7 @@ jobs: uses: contributte/.github/.github/workflows/nette-tester.yml@v1 with: php: "8.5" + make: "init tests" test84: name: "Nette Tester" diff --git a/tests/Cases/Symfony/Validator/Mocks/UserPojo.php b/tests/Cases/Symfony/Validator/Mocks/UserPojo.php index 522b12f3..22d29dba 100644 --- a/tests/Cases/Symfony/Validator/Mocks/UserPojo.php +++ b/tests/Cases/Symfony/Validator/Mocks/UserPojo.php @@ -14,7 +14,7 @@ class UserPojo public static function loadValidatorMetadata(ClassMetadata $metadata): void { $metadata->addPropertyConstraint('username', new NotBlank()); - $metadata->addPropertyConstraint('username', new Length(['min' => 10, 'max' => 20])); + $metadata->addPropertyConstraint('username', new Length(min: 10, max: 20)); } public function getUsername(): string diff --git a/tests/Cases/Symfony/Validator/Validator.simple.phpt b/tests/Cases/Symfony/Validator/Validator.simple.phpt index 71f507a8..9b1b9361 100644 --- a/tests/Cases/Symfony/Validator/Validator.simple.phpt +++ b/tests/Cases/Symfony/Validator/Validator.simple.phpt @@ -15,7 +15,7 @@ require_once __DIR__ . '/../../../bootstrap.php'; Toolkit::test(function (): void { $validator = Validation::createValidator(); $violations = $validator->validate('Felix', [ - new Length(['min' => 10]), + new Length(min: 10), new NotBlank(), ]);