Skip to content

Commit 53fdbcf

Browse files
committed
removed deprecated stuff
1 parent 32c2b8c commit 53fdbcf

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/Forms/Container.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,7 @@ public function addInteger(string $name, $label = null): Controls\TextInput
326326
*/
327327
public function addUpload(string $name, $label = null): Controls\UploadControl
328328
{
329-
if (func_num_args() > 2) {
330-
trigger_error(__METHOD__ . '() parameter $multiple is deprecated, use addMultiUpload()', E_USER_DEPRECATED);
331-
$multiple = func_get_arg(2);
332-
}
333-
return $this[$name] = new Controls\UploadControl($label, $multiple ?? false);
329+
return $this[$name] = new Controls\UploadControl($label, false);
334330
}
335331

336332

src/Forms/Controls/BaseControl.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -531,13 +531,6 @@ public function cleanErrors(): void
531531
}
532532

533533

534-
/** @deprecated */
535-
public static function enableAutoOptionalMode(): void
536-
{
537-
trigger_error(__METHOD__ . '() is deprecated.', E_USER_DEPRECATED);
538-
}
539-
540-
541534
/********************* user data ****************d*g**/
542535

543536

0 commit comments

Comments
 (0)