Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 09065ca

Browse files
Backticks must not be used (#21)
1 parent 55d483e commit 09065ca

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Libero/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<exclude name="PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse"/>
1111
</rule>
1212

13+
<rule ref="Generic.PHP.BacktickOperator"/>
1314
<rule ref="Generic.PHP.LowerCaseType"/>
1415
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
1516
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility">

tests/cases/php/backtick

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---DESCRIPTION---
2+
Backticks must not be used
3+
---CONTENTS---
4+
<?php
5+
6+
declare(strict_types=1);
7+
8+
$list = `ls -la`;
9+
10+
---MESSAGES---
11+
5:9 Generic.PHP.BacktickOperator.Found
12+
5:16 Generic.PHP.BacktickOperator.Found
13+
---

0 commit comments

Comments
 (0)