From f7357641cfe12926a113ae064052301a4c09b589 Mon Sep 17 00:00:00 2001 From: Asis Pattisahusiwa <79239132+asispts@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:36:51 +0700 Subject: [PATCH] Forbid backticks operator (#20) --- ptscs/ruleset.xml | 2 ++ tests/Sniffs/Generic/BacktickOperatorTest.php | 17 +++++++++++++++++ .../Generic/_data/BacktickOperator.php.fixed | 3 +++ .../Generic/_data/BacktickOperator.php.inc | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 tests/Sniffs/Generic/BacktickOperatorTest.php create mode 100644 tests/Sniffs/Generic/_data/BacktickOperator.php.fixed create mode 100644 tests/Sniffs/Generic/_data/BacktickOperator.php.inc diff --git a/ptscs/ruleset.xml b/ptscs/ruleset.xml index fb30393..4be12f1 100644 --- a/ptscs/ruleset.xml +++ b/ptscs/ruleset.xml @@ -20,6 +20,8 @@ + + diff --git a/tests/Sniffs/Generic/BacktickOperatorTest.php b/tests/Sniffs/Generic/BacktickOperatorTest.php new file mode 100644 index 0000000..40801d7 --- /dev/null +++ b/tests/Sniffs/Generic/BacktickOperatorTest.php @@ -0,0 +1,17 @@ +