Fix command option append to array syntax (#7982)

This commit is contained in:
frytimo
2026-05-21 19:56:09 +00:00
committed by GitHub
parent b2fa27e532
commit 72b426e8d5
+2 -2
View File
@@ -105,7 +105,7 @@ class command_option {
*/
public function callback(?string $function = null) {
if ($function !== null) {
$this->functions += [$function];
$this->functions[] = $function;
return $this;
}
return $this->functions;
@@ -123,7 +123,7 @@ class command_option {
*/
public function function_append(?string $function = null) {
if ($function !== null) {
$this->functions += [$function];
$this->functions[] = $function;
return $this;
}
return $this->functions;