Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / search / field / PhabricatorIDsSearchField.php
blobcb8c27ef752c7a670baf9dee9bf543ea0c2a5d43
1 <?php
3 final class PhabricatorIDsSearchField
4 extends PhabricatorSearchField {
6 protected function getDefaultValue() {
7 return array();
10 protected function getValueFromRequest(AphrontRequest $request, $key) {
11 return $request->getStrList($key);
14 protected function newControl() {
15 if (strlen($this->getValueForControl())) {
16 return new AphrontFormTextControl();
17 } else {
18 return null;
22 protected function getValueForControl() {
23 return implode(', ', parent::getValueForControl());
26 protected function newConduitParameterType() {
27 return id(new ConduitIntListParameterType())
28 ->setAllowEmptyList(false);