From 17757eb0291fe9cce88dd01200b5b9226b08385b Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 13 Nov 2023 13:40:47 +1300 Subject: [PATCH] MNT Resolve CI problems - 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 @@