]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix some failing unit tests
authorJoshua Spence <josh@joshuaspence.com>
Sun, 2 Aug 2015 20:47:47 +0000 (06:47 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 2 Aug 2015 20:47:47 +0000 (06:47 +1000)
Summary: I somehow missed these.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13693

src/lint/linter/__tests__/xhpast/decl-parens-hug-closing.lint-test
src/lint/linter/__tests__/xhpast/naming-conventions.lint-test
src/lint/linter/__tests__/xhpast/undeclared-variables.lint-test

index a7ea5adf62199703d6481c67bf147f80b707877b..c6accb1521622130bae37ee4dc23391db27dce30 100644 (file)
@@ -28,7 +28,7 @@ warning:4:14
 warning:5:11
 warning:8:15
 error:10:13
-warning:11:23
+warning:13:23
 warning:16:31
 warning:19:33
 warning:24:14
index cc78e403ebc82ce7ad8ed8947a77ac678d801075..3bf1a71ad64421b61f38d629496264e129959955 100644 (file)
@@ -21,7 +21,7 @@ final class Quack {
 
 
 
-function () use ($this_is_a_closure) {};
+function() use ($this_is_a_closure) {};
 
 function f(&$YY) {}
 
index 7c4b9c6dc7716a806473f246d0c94f49e1360aaa..3b07c19cabd285e4c365c45e5c7fb5275fa83a84 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-function () use ($c) {
+function() use ($c) {
   $c++;
 };