mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-27 16:00:58 +01:00
Use assert_instances_of(, 'array')
Summary: To have at least one real callsite. Test Plan: $message = new ArcanistLintMessage(); $message->setOtherLocations(array()); $message->setOtherLocations(array(array())); $message->setOtherLocations(array(1)); Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4419
This commit is contained in:
parent
e8decd2062
commit
d4359a838a
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ final class ArcanistLintMessage {
|
|||
* @param dict Keys 'path', 'line', 'char', 'original'.
|
||||
*/
|
||||
public function setOtherLocations(array $locations) {
|
||||
assert_instances_of($locations, 'array');
|
||||
$this->otherLocations = $locations;
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue