Skip to content

Commit

Permalink
Disable WP_DEBUG for PHP 8.2 and 8.3 due to Gravity Forms deprecated …
Browse files Browse the repository at this point in the history
…notices
  • Loading branch information
n7studios committed Dec 5, 2023
1 parent 779a436 commit 762b749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ jobs:
run: wp-cli plugin install ${{ secrets.CONVERTKIT_PAID_PLUGIN_URLS }}

# WP_DEBUG = true is required so all PHP errors are output and caught by tests (E_ALL).
# WP_DEBUG = false for PHP 8.2 and 8.3, otherwise E_DEPRECATED is output due to Gravity Forms.
- name: Enable WP_DEBUG
if: ${{ matrix.php-versions != '8.2' && matrix.php-versions != '8.3' }}
working-directory: ${{ env.ROOT_DIR }}
run: |
wp-cli config set WP_DEBUG true --raw
Expand Down

0 comments on commit 762b749

Please sign in to comment.