Skip to content

Commit 174eb15

Browse files
staabmsebastianbergmann
authored andcommitted
Fix "Method *::evaluate() never returns null so it can be removed from the return type"
1 parent 527d690 commit 174eb15

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Framework/Constraint/Equality/IsEqual.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(mixed $value)
4242
*
4343
* @throws ExpectationFailedException
4444
*/
45-
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
45+
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): bool
4646
{
4747
// If $this->value and $other are identical, they are also equal.
4848
// This is the most common path and will allow us to skip

src/Framework/Constraint/Equality/IsEqualCanonicalizing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(mixed $value)
4242
*
4343
* @throws ExpectationFailedException
4444
*/
45-
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
45+
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): bool
4646
{
4747
// If $this->value and $other are identical, they are also equal.
4848
// This is the most common path and will allow us to skip

src/Framework/Constraint/Equality/IsEqualIgnoringCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(mixed $value)
4242
*
4343
* @throws ExpectationFailedException
4444
*/
45-
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
45+
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): bool
4646
{
4747
// If $this->value and $other are identical, they are also equal.
4848
// This is the most common path and will allow us to skip

src/Framework/Constraint/Equality/IsEqualWithDelta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(mixed $value, float $delta)
4242
*
4343
* @throws ExpectationFailedException
4444
*/
45-
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
45+
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): bool
4646
{
4747
// If $this->value and $other are identical, they are also equal.
4848
// This is the most common path and will allow us to skip

0 commit comments

Comments
 (0)