Skip to content

Commit d5cbc69

Browse files
Girgiasnicolas-grekas
authored andcommitted
Fix various bool-type coercions
1 parent fb827b0 commit d5cbc69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Constraints/IsbnValidatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static function getInvalidIsbn()
121121

122122
public function testNullIsValid()
123123
{
124-
$constraint = new Isbn(true);
124+
$constraint = new Isbn();
125125

126126
$this->validator->validate(null, $constraint);
127127

@@ -130,7 +130,7 @@ public function testNullIsValid()
130130

131131
public function testEmptyStringIsValid()
132132
{
133-
$constraint = new Isbn(true);
133+
$constraint = new Isbn();
134134

135135
$this->validator->validate('', $constraint);
136136

@@ -140,7 +140,7 @@ public function testEmptyStringIsValid()
140140
public function testExpectsStringCompatibleType()
141141
{
142142
$this->expectException(UnexpectedValueException::class);
143-
$constraint = new Isbn(true);
143+
$constraint = new Isbn();
144144

145145
$this->validator->validate(new \stdClass(), $constraint);
146146
}

0 commit comments

Comments
 (0)