Skip to content

Commit

Permalink
test: update default mock constructor to improve dev experience
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Mar 14, 2024
1 parent d3b1aaa commit 3a71f0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Mock/BaseMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class BaseMock implements Arrayable
*/
protected $attributes;

/**
* Arbitrary arguments to avoid false method signature warnings in editor.
*/
public function __construct(...$args) { }

/**
* @param $name
* @param $arguments
Expand Down

0 comments on commit 3a71f0c

Please sign in to comment.