Use assert_instances_of() everywhere but Differential and Diffusion

Summary: NOTE: This is not produced by a script so there might be errors. Please review carefully.

Test Plan: Browse around.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D2091
This commit is contained in:
vrana
2012-04-03 12:10:45 -07:00
parent 5623abecbf
commit 8813c7be0e
50 changed files with 105 additions and 5 deletions

View File

@@ -270,6 +270,7 @@ final class PhabricatorProjectProfileController
}
private function renderStories(array $stories) {
assert_instances_of($stories, 'PhabricatorFeedStory');
$builder = new PhabricatorFeedBuilder($stories);
$builder->setUser($this->getRequest()->getUser());