Skip to content

Commit

Permalink
Remove :void() statements for PHP version compat
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Nov 6, 2022
1 parent 567cee5 commit 243ec85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test-arguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function pushToArgv($args)
/**
* Set up valid flags and options
*/
public function setUp(): void
public function setUp()
{
self::clearArgv();
self::pushToArgv('my_script.php');
Expand Down
2 changes: 1 addition & 1 deletion tests/test-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use WP_CLI\Tests\TestCase;
class testsCli extends TestCase {

function setUp(): void {
function setUp() {
// Reset enable state
\cli\Colors::enable( null );

Expand Down
2 changes: 1 addition & 1 deletion tests/test-table-ascii.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Test_Table_Ascii extends TestCase {
/**
* Creates instance and redirects STDOUT to temporary file
*/
public function setUp(): void {
public function setUp() {
$this->_mockFile = tempnam(sys_get_temp_dir(), 'temp');
$resource = fopen($this->_mockFile, 'wb');
Streams::setStream('out', $resource);
Expand Down

0 comments on commit 243ec85

Please sign in to comment.