Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13985257
D9643.id23145.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
515 B
Referenced Files
None
Subscribers
None
D9643.id23145.diff
View Options
diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php
--- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php
+++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php
@@ -38,7 +38,11 @@
$basename = basename($file);
- $config = phutil_json_decode($config);
+ if ($config) {
+ $config = phutil_json_decode($config);
+ } else {
+ $config = array();
+ }
PhutilTypeSpec::checkMap(
$config,
array(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 21, 7:11 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6738982
Default Alt Text
D9643.id23145.diff (515 B)
Attached To
Mode
D9643: Don't throw an exception if no configuration is set for linter tests
Attached
Detach File
Event Timeline
Log In to Comment