Skip to content

Commit

Permalink
Refuse writing to undeclared properties in workflows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vrana committed Dec 19, 2012
1 parent 2871d00 commit 219dbe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/__phutil_library_map__.php
Expand Up @@ -158,6 +158,7 @@
'ArcanistApacheLicenseLinterTestCase' => 'ArcanistArcanistLinterTestCase', 'ArcanistApacheLicenseLinterTestCase' => 'ArcanistArcanistLinterTestCase',
'ArcanistArcanistLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistArcanistLinterTestCase' => 'ArcanistLinterTestCase',
'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase', 'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase',
'ArcanistBaseWorkflow' => 'Phobject',
'ArcanistBranchWorkflow' => 'ArcanistBaseWorkflow', 'ArcanistBranchWorkflow' => 'ArcanistBaseWorkflow',
'ArcanistBrowseWorkflow' => 'ArcanistBaseWorkflow', 'ArcanistBrowseWorkflow' => 'ArcanistBaseWorkflow',
'ArcanistBundleTestCase' => 'ArcanistTestCase', 'ArcanistBundleTestCase' => 'ArcanistTestCase',
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/ArcanistBaseWorkflow.php
Expand Up @@ -34,7 +34,7 @@
* @group workflow * @group workflow
* @stable * @stable
*/ */
abstract class ArcanistBaseWorkflow { abstract class ArcanistBaseWorkflow extends Phobject {


const COMMIT_DISABLE = 0; const COMMIT_DISABLE = 0;
const COMMIT_ALLOW = 1; const COMMIT_ALLOW = 1;
Expand Down

0 comments on commit 219dbe2

Please sign in to comment.