Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 4, 2024
1 parent e45dd3a commit 57a7d5d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/PHPStan/Levels/data/comparison.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ class Foo
private const FOO_CONST = 'foo';

/**
* @param \stdClass $object
* @param \stdClass $object
* @param int $int
* @param float $float
* @param float $float
* @param string $string
* @param int|string $intOrString
* @param int|\stdClass $intOrObject
*/
public function doFoo(
\stdClass $object,
\stdClass $object,
int $int,
float $float,
string $string,
$intOrString,
$intOrObject
$intOrObject
)
{
$object == $int;
$object == $float;
$object == $string;
$object == $intOrString;
$object == $intOrObject;
$result = $object == $int;
$result = $object == $float;
$result = $object == $string;
$result = $object == $intOrString;
$result = $object == $intOrObject;

self::FOO_CONST === 'bar';
$result = self::FOO_CONST === 'bar';
}

public function doBar(\ffmpeg_movie $movie): void
Expand Down

0 comments on commit 57a7d5d

Please sign in to comment.