File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,11 @@ my_extract(); // Ok.
77My_Object::extract (); // Ok.
88$ this ->extract (); // Ok.
99$ my_object ->extract (); // Ok.
10+
11+ /*
12+ * Safeguard correct handling of all types of namespaced function calls.
13+ */
14+ \extract ( array ( 'a ' => 1 ) );
15+ MyNamespace \extract ( array ( 'a ' => 1 ) );
16+ \MyNamespace \extract ( array ( 'a ' => 1 ) );
17+ namespace \extract ( array ( 'a ' => 1 ) ); // The sniff should start flagging this once it can resolve relative namespaces.
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ final class DontExtractUnitTest extends AbstractSniffUnitTest {
2929 */
3030 public function getErrorList () {
3131 return array (
32- 3 => 1 ,
32+ 3 => 1 ,
33+ 14 => 1 ,
3334 );
3435 }
3536
You can’t perform that action at this time.
0 commit comments