Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ parameters:
paths:
- tests/
- src/
ignoreErrors:
-
message: '#Parameter \#1 \$className of static method PHPUnit\\Framework\\Assert::assertContainsOnlyInstancesOf\(\) expects class-string<object>, string given\.#'
path: src/Codeception/Util/Shared/InheritedAsserts.php
-
message: '#Parameter \#1 \$className of static method PHPUnit\\Framework\\Assert::assertContainsNotOnlyInstancesOf\(\) expects class-string, string given\.#'
path: src/Codeception/Util/Shared/InheritedAsserts.php
7 changes: 3 additions & 4 deletions src/Codeception/Util/Shared/InheritedAsserts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Codeception\Util\Shared;

use ArrayAccess;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\Constraint\Constraint as PHPUnitConstraint;
use PHPUnit\Framework\Constraint\LogicalNot;
Expand All @@ -16,16 +15,16 @@ trait InheritedAsserts
{
/**
* Asserts that an array has a specified key.
* @param array<mixed>|ArrayAccess<mixed, mixed> $array
* @param array<mixed>|\ArrayAccess<mixed, mixed> $array
*/
protected function assertArrayHasKey(int|string $key, array|ArrayAccess $array, string $message = ''): void
protected function assertArrayHasKey(int|string $key, array|\ArrayAccess $array, string $message = ''): void
{
Assert::assertArrayHasKey($key, $array, $message);
}

/**
* Asserts that an array does not have a specified key.
* @param array<mixed>|ArrayAccess<mixed, mixed> $array
* @param array<mixed>|\ArrayAccess<mixed, mixed> $array
*/
protected function assertArrayNotHasKey(int|string $key, array|\ArrayAccess $array, string $message = ''): void
{
Expand Down
Loading