Skip to content

Commit 9a68579

Browse files
Fix PHP fatal error
1 parent 402eb94 commit 9a68579

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup PHP version
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: '7.2'
16+
php-version: '7.4'
1717
extensions: simplexml
1818
- name: Checkout source code
1919
uses: actions/checkout@v2
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup PHP version
5050
uses: shivammathur/setup-php@v2
5151
with:
52-
php-version: '7.2'
52+
php-version: '7.4'
5353
extensions: simplexml, mysql
5454
tools: phpunit-polyfills
5555
- name: Checkout source code

tests/test-ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Test_Visualizer_Ajax extends WP_Ajax_UnitTestCase {
3737
/**
3838
* Set up.
3939
*/
40-
public function setUp() {
40+
public function setUp(): void {
4141
parent::setUp();
4242
$this->admin_user_id = $this->factory->user->create(
4343
array(

0 commit comments

Comments
 (0)