Skip to content

Commit

Permalink
This allows you to run phpcs on PHP 8.
Browse files Browse the repository at this point in the history
It was taken from Automattic/wp-calypso#71062
  • Loading branch information
micahmills committed Dec 20, 2022
1 parent a37cd92 commit 3a01bd0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
right settings for this project.
-->

<!--
Suppress all PHP run-time notices across all PHP versions, thus preventing
errors caused by WordPress Coding Standards not supporting PHP 8.0+ yet.
Once WPCS supports PHP8, this can be removed.
See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
This was taken from https://github.com/Automattic/wp-calypso/pull/71062
-->
<ini name="error_reporting" value="E_ALL &#38; ~E_DEPRECATED" />

<file>.</file>

<exclude-pattern>dt-core/dependencies/*</exclude-pattern>
Expand Down

0 comments on commit 3a01bd0

Please sign in to comment.