From 8bd191f47fb16c79bbc7c37515dad0ba611b5809 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:28:21 +1300 Subject: [PATCH] MNT Resolve CI problems (#3) - Tell phpcs what to sniff - Throw a hard error if we can't bootstrap tests correctly - Force Tokens.php to be run for constant declarations --- phpcs.xml.dist | 11 +++++++---- tests/bootstrap.php | 12 ++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 9bf83ab..6fe3c5e 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -1,7 +1,10 @@ - - - tests/bootstrap\.php - + + + tests/bootstrap\.php + + + ./src + ./tests diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7713bfa..2223e39 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,6 +1,9 @@