style: pint new-without-parens fix on WS-6 session-2.5 unit tests

Trailing housekeeping after Task 1 (default_crowd_type_id) commit
d2059e3. The codebase pint config uses `new_with_parentheses = false`
(no `()` after class name when constructor has no args). Two new
tests slipped past with `new FormValue()` / `new RequiresDefaultCrowdType()`
patterns; pint converts them to `new FormValue` / `new RequiresDefaultCrowdType`.

No behavioural change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-28 09:47:47 +02:00
parent 85f4777e0c
commit 6f1d1a895a
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ final class RequiresDefaultCrowdTypeTest extends TestCase
$schema->default_crowd_type_id = $crowdType->id;
$schema->save();
$result = (new RequiresDefaultCrowdType())->evaluate($schema->fresh());
$result = (new RequiresDefaultCrowdType)->evaluate($schema->fresh());
$this->assertTrue($result->passed);
$this->assertSame('requires_default_crowd_type', $result->guardCode);
}
@@ -33,7 +33,7 @@ final class RequiresDefaultCrowdTypeTest extends TestCase
$schema = FormSchema::factory()->create();
$this->assertNull($schema->default_crowd_type_id);
$result = (new RequiresDefaultCrowdType())->evaluate($schema);
$result = (new RequiresDefaultCrowdType)->evaluate($schema);
$this->assertFalse($result->passed);
$this->assertSame('requires_default_crowd_type', $result->guardCode);
$this->assertSame(