Skip to content

Commit

Permalink
Merge pull request #235 from Yoast/feature/assertContainsNotOnlyInsta…
Browse files Browse the repository at this point in the history
…ncesOf-fix-param-name

AssertContainsOnly::assertContainsNotOnlyInstancesOf(): fix incorrect param name
  • Loading branch information
jrfnl authored Jan 12, 2025
2 parents 1bc0d31 + b822354 commit 32aafad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Polyfills/AssertContainsOnly.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ trait AssertContainsOnly {
/**
* Asserts that $haystack does not only contain instances of class or interface $type.
*
* @param string $type Class or interface name.
* @param iterable<mixed> $haystack The variable to test.
* @param string $message Optional failure message to display.
* @param string $className Class or interface name.
* @param iterable<mixed> $haystack The variable to test.
* @param string $message Optional failure message to display.
*
* @return void
*/
final public static function assertContainsNotOnlyInstancesOf( string $type, $haystack, string $message = '' ) {
static::assertNotContainsOnly( $type, $haystack, false, $message );
final public static function assertContainsNotOnlyInstancesOf( string $className, $haystack, string $message = '' ) {
static::assertNotContainsOnly( $className, $haystack, false, $message );
}

/**
Expand Down

0 comments on commit 32aafad

Please sign in to comment.