mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
Use class_exists() before is_subclass_of()
Summary: HPHP doesn't autoload without it. Test Plan: /p/vrana/feed/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3009
This commit is contained in:
parent
00160ab2a3
commit
6e63674b2d
1 changed files with 3 additions and 2 deletions
|
@ -53,9 +53,10 @@ abstract class PhabricatorFeedStory implements PhabricatorPolicyInterface {
|
|||
foreach ($data as $story_data) {
|
||||
$class = $story_data->getStoryType();
|
||||
|
||||
$ok = false;
|
||||
try {
|
||||
$ok = is_subclass_of($class, 'PhabricatorFeedStory');
|
||||
$ok =
|
||||
class_exists($class) &&
|
||||
is_subclass_of($class, 'PhabricatorFeedStory');
|
||||
} catch (PhutilMissingSymbolException $ex) {
|
||||
$ok = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue