Skip to content

Commit 00126b3

Browse files
author
Vincent Langlet
committed
🚨 Remove php error in test
1 parent 5bb89ce commit 00126b3

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

Symfony3Custom/Tests/Commenting/VariableCommentUnitTest.inc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class VariableCommentUnitTest
8383
* @see anotherFunctions()
8484
* @see
8585
*/
86-
public $singleLineFullStopShortComment = '';
86+
public $singleLineFullStopShortComment2 = '';
8787

8888

8989
/**
@@ -94,14 +94,6 @@ class VariableCommentUnitTest
9494
*/
9595
public $missingSinceTag = '';
9696

97-
98-
/**
99-
* T_VARIABLE check, without scope.
100-
*
101-
* @var string
102-
*/
103-
$variableCheck = '';
104-
10597
/**
10698
* T_VARIABLE check, var in string and in function.
10799
*
@@ -114,8 +106,8 @@ class VariableCommentUnitTest
114106
{
115107
$var4 = 'A normal variable';
116108
$var5 = PHP_CodeSniffer_Tokens::$operators;
117-
echo "Printing $var1 $var2 and unknown $var3 in a double quoted string\n";
118-
foreach (self::$_array as $index => $content) {
109+
echo "Printing $var1 $var2 in a double quoted string\n";
110+
foreach ([] as $index => $content) {
119111
echo $content;
120112
}
121113

@@ -128,7 +120,7 @@ class VariableCommentUnitTest
128120
*
129121
*
130122
*/
131-
$emptyVarDoc = '';
123+
public $emptyVarDoc = '';
132124
/**
133125
* @var int
134126
*/

Symfony3Custom/Tests/Commenting/VariableCommentUnitTest.inc.fixed

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class VariableCommentUnitTest
8383
* @see anotherFunctions()
8484
* @see
8585
*/
86-
public $singleLineFullStopShortComment = '';
86+
public $singleLineFullStopShortComment2 = '';
8787

8888

8989
/**
@@ -94,14 +94,6 @@ class VariableCommentUnitTest
9494
*/
9595
public $missingSinceTag = '';
9696

97-
98-
/**
99-
* T_VARIABLE check, without scope.
100-
*
101-
* @var string
102-
*/
103-
$variableCheck = '';
104-
10597
/**
10698
* T_VARIABLE check, var in string and in function.
10799
*
@@ -114,8 +106,8 @@ class VariableCommentUnitTest
114106
{
115107
$var4 = 'A normal variable';
116108
$var5 = PHP_CodeSniffer_Tokens::$operators;
117-
echo "Printing $var1 $var2 and unknown $var3 in a double quoted string\n";
118-
foreach (self::$_array as $index => $content) {
109+
echo "Printing $var1 $var2 in a double quoted string\n";
110+
foreach ([] as $index => $content) {
119111
echo $content;
120112
}
121113

@@ -128,7 +120,7 @@ class VariableCommentUnitTest
128120
*
129121
*
130122
*/
131-
$emptyVarDoc = '';
123+
public $emptyVarDoc = '';
132124

133125
/**
134126
* @var int

Symfony3Custom/Tests/Commenting/VariableCommentUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public function getErrorList()
2222
64 => 1,
2323
73 => 1,
2424
84 => 1,
25-
130 => 1,
26-
132 => 1,
25+
122 => 1,
26+
124 => 1,
2727
);
2828
}
2929

0 commit comments

Comments
 (0)