Add assert_instances_of()
Auditors: epriestley
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
final class DifferentialChangesetViewController extends DifferentialController {
|
||||
|
||||
|
||||
public function shouldRequireLogin() {
|
||||
return !$this->allowsAnonymousAccess();
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
||||
private $handles = array();
|
||||
|
||||
public function setPaths(array $paths) {
|
||||
assert_instances_of($paths, 'DiffusionRepositoryPath');
|
||||
$this->paths = $paths;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user