From 63ce04d5653208a8c01f772d6fb7b0e795bd0b06 Mon Sep 17 00:00:00 2001
From: Andreas Fischer <bantu@phpbb.com>
Date: Wed, 30 Oct 2013 00:49:01 +0100
Subject: [task/code-sniffer] Add Generic.Functions.CallTimePassByReference

PHPBB3-11980
---
 build/code_sniffer/ruleset-php-legacy.xml | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'build/code_sniffer')

diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml
index 669393f844..247313441d 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -17,6 +17,9 @@
  <!-- There MUST not be more than one statement per line. -->
  <rule ref="Generic.Formatting.DisallowMultipleStatements" />
 
+ <!-- Call-time pass-by-reference MUST not be used. -->
+ <rule ref="Generic.Functions.CallTimePassByReference.NotAllowed" />
+
  <!-- Class constants MUST be declared in all upper case with underscore separators. -->
  <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
 
-- 
cgit v1.2.1