Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/.kodiak.toml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/Cases/Symfony/Validator/Mocks/UserPojo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Cases/Symfony/Validator/Validator.simple.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);

Expand Down