Permalink
Browse files

Add assert_instances_of()

Auditors: epriestley
  • Loading branch information...
1 parent b44f687 commit a0417d97c874eafc41363c1f6714165a385a4a44 vrana committed Apr 25, 2012
@@ -18,7 +18,6 @@
final class DifferentialChangesetViewController extends DifferentialController {
-
public function shouldRequireLogin() {
return !$this->allowsAnonymousAccess();
}
@@ -22,6 +22,7 @@
private $handles = array();
public function setPaths(array $paths) {
+ assert_instances_of($paths, 'DiffusionRepositoryPath');
$this->paths = $paths;
return $this;
}

0 comments on commit a0417d9

Please sign in to comment.