From 9a685798062fb962750188d93c60c0d2738edb04 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Wed, 17 Jul 2024 12:04:26 +0530 Subject: [PATCH] Fix PHP fatal error --- .github/workflows/test-php.yml | 4 ++-- tests/test-ajax.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index f1d64ee0..417d580f 100755 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -13,7 +13,7 @@ jobs: - name: Setup PHP version uses: shivammathur/setup-php@v2 with: - php-version: '7.2' + php-version: '7.4' extensions: simplexml - name: Checkout source code uses: actions/checkout@v2 @@ -49,7 +49,7 @@ jobs: - name: Setup PHP version uses: shivammathur/setup-php@v2 with: - php-version: '7.2' + php-version: '7.4' extensions: simplexml, mysql tools: phpunit-polyfills - name: Checkout source code diff --git a/tests/test-ajax.php b/tests/test-ajax.php index a7bd7a6b..11fb3396 100644 --- a/tests/test-ajax.php +++ b/tests/test-ajax.php @@ -37,7 +37,7 @@ class Test_Visualizer_Ajax extends WP_Ajax_UnitTestCase { /** * Set up. */ - public function setUp() { + public function setUp(): void { parent::setUp(); $this->admin_user_id = $this->factory->user->create( array(