Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 26, 2025
1 parent 46940c7 commit 82b40ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Plugin implements PluginEntryPointInterface
{
public function __invoke(RegistrationInterface $registration, SimpleXMLElement $config = null): void
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
{
$registration->addStubFile(__DIR__ . '/stubs/Mockery.php');

Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/MockReturn.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Feature: MockReturn
"""
When I run Psalm
Then I see these errors
| Type | Message |
| DocblockTypeContradiction | / type Mockery\\MockInterface&NS\\User (does not contain array<[^,]+, mixed>\|for \$user is never array)/ |
| Type | Message |
| DocblockTypeContradiction | Docblock-defined type Mockery\MockInterface&NS\User for $user is never array<array-key, mixed> |
And I see no other errors

Scenario: Alias class mocking is recognized
Expand Down

0 comments on commit 82b40ff

Please sign in to comment.