Skip to content

Commit

Permalink
Extend docblock about same and equals regarding their type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
DBX12 committed Jul 31, 2024
1 parent 2e5e707 commit a579f65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Codeception/Verify/Verifiers/VerifyMixed.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ public function empty(string $message = ''): self
}

/**
* Verifies that two variables are equal.
* Verifies that two variables are equal without comparing the type.
*
* @param $expected
* @param string $message
* @return self
* @see same for comparing values and their types (type-safe comparison)
*/
public function equals($expected, string $message = ''): self
{
Expand Down Expand Up @@ -630,6 +631,7 @@ public function null(string $message = ''): self
* @param $expected
* @param string $message
* @return self
* @see equals for comparing variables in a non-type-safe manner
*/
public function same($expected, string $message = ''): self
{
Expand Down

0 comments on commit a579f65

Please sign in to comment.