Skip to content

Commit

Permalink
Fix syntax in example code (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
dontub authored Jun 23, 2021
1 parent 5f95563 commit 0d74caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Test/Feature/Stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function make($class, $params = [])
* ``` php
* <?php
* $this->makeEmpty('User', ['save' => function () { return true; }]);
* $this->makeEmpty('User', ['save' => true));
* $this->makeEmpty('User', ['save' => true]);
* ```
*
* @template RealInstanceType of object
Expand Down Expand Up @@ -312,4 +312,4 @@ public function constructEmptyExcept($class, $method, $constructorParams = [], $
return $this->mocks[] = \Codeception\Stub::constructEmptyExcept($class, $method, $constructorParams, $params, $this);
}

}
}

0 comments on commit 0d74caa

Please sign in to comment.