]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Refuse writing to undeclared properties in workflows
authorvrana <jakubv@fb.com>
Wed, 3 Oct 2012 21:34:02 +0000 (14:34 -0700)
committervrana <jakubv@fb.com>
Wed, 19 Dec 2012 00:15:32 +0000 (16:15 -0800)
Summary: I don't know how to not be strict here plus we (Arcanist developers) don't have access to user's error log.

Test Plan:
Undeclared `ArcanistDiffWorkflow::$console`, then:

  $ arc diff

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3607

src/__phutil_library_map__.php
src/workflow/ArcanistBaseWorkflow.php

index 6eebb90de25759f7637abee2594a775f44f860ce..e261c099aec3025fb483989ef0f72a7403f112f2 100644 (file)
@@ -158,6 +158,7 @@ phutil_register_library_map(array(
     'ArcanistApacheLicenseLinterTestCase' => 'ArcanistArcanistLinterTestCase',
     'ArcanistArcanistLinterTestCase' => 'ArcanistLinterTestCase',
     'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase',
+    'ArcanistBaseWorkflow' => 'Phobject',
     'ArcanistBranchWorkflow' => 'ArcanistBaseWorkflow',
     'ArcanistBrowseWorkflow' => 'ArcanistBaseWorkflow',
     'ArcanistBundleTestCase' => 'ArcanistTestCase',
index 37ea3f6f121bdf8f8fed38b602b7d2a5f76b713b..32312af2fb53c633424d38789d937909effb739b 100644 (file)
@@ -34,7 +34,7 @@
  * @group workflow
  * @stable
  */
-abstract class ArcanistBaseWorkflow {
+abstract class ArcanistBaseWorkflow extends Phobject {
 
   const COMMIT_DISABLE = 0;
   const COMMIT_ALLOW = 1;