Skip to content

Commit

Permalink
Revert "Use strict comparison", please use same/notSame
Browse files Browse the repository at this point in the history
This reverts commit 1ae95f4
  • Loading branch information
twose committed Jul 10, 2019
1 parent 1ae95f4 commit 2115844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public static function uniqueValues(array $values, $message = ''): bool

public static function eq($value, $expect, $message = ''): bool
{
if ($expect !== $value) {
if ($expect != $value) {
static::reportInvalidArgument(sprintf(
$message ?: 'Expected a value equal to %2$s. Got: %s',
static::valueToString($value),
Expand All @@ -577,7 +577,7 @@ public static function eq($value, $expect, $message = ''): bool

public static function notEq($value, $expect, $message = ''): bool
{
if ($expect === $value) {
if ($expect == $value) {
static::reportInvalidArgument(sprintf(
$message ?: 'Expected a different value than %s.',
static::valueToString($expect)
Expand Down

0 comments on commit 2115844

Please sign in to comment.