Skip to content

Commit

Permalink
Add return type to setup() and teardown()
Browse files Browse the repository at this point in the history
  • Loading branch information
cj-watts committed Feb 13, 2019
1 parent 9f3525a commit 1ec0ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/WP_Mock.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function bootstrap() {
/**
* Make sure Mockery doesn't have anything set up already.
*/
public static function setUp() {
public static function setUp():void {
if ( self::$__bootstrapped ) {
\Mockery::close();

Expand All @@ -128,7 +128,7 @@ public static function setUp() {
/**
* Tear down anything built up inside Mockery when we're ready to do so.
*/
public static function tearDown() {
public static function tearDown():void {
self::$event_manager->flush();
self::$function_manager->flush();

Expand Down

0 comments on commit 1ec0ad3

Please sign in to comment.