Skip to content

Commit

Permalink
Merge pull request #1172 from Codeinwp/fix/pr-1171
Browse files Browse the repository at this point in the history
Fixed PHP outdated version error
  • Loading branch information
vytisbulkevicius authored Jul 17, 2024
2 parents 701530b + 420cbfa commit 4dcd247
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
php-version: '7.4'
extensions: simplexml
- name: Checkout source code
uses: actions/checkout@v2
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
php-version: '7.4'
extensions: simplexml, mysql
tools: phpunit-polyfills
- name: Checkout source code
Expand Down
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>lib/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<rule ref="WordPress-Core">
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
<exclude name="Generic.Files.LowercasedFilename" />
Expand Down
2 changes: 1 addition & 1 deletion tests/test-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4dcd247

Please sign in to comment.