From ae76c67e31b36e0412b256e9771c3bdef0a326fe Mon Sep 17 00:00:00 2001 From: IvanCraft623 <57236932+IvanCraft623@users.noreply.github.com> Date: Wed, 13 Jul 2022 12:17:11 -0500 Subject: [PATCH 1/3] Allow mixed value on labels --- src/jojoe77777/FormAPI/SimpleForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jojoe77777/FormAPI/SimpleForm.php b/src/jojoe77777/FormAPI/SimpleForm.php index a6e47eb..e596a1b 100755 --- a/src/jojoe77777/FormAPI/SimpleForm.php +++ b/src/jojoe77777/FormAPI/SimpleForm.php @@ -72,9 +72,9 @@ public function setContent(string $content) : void { * @param string $text * @param int $imageType * @param string $imagePath - * @param string $label + * @param mixed $label */ - public function addButton(string $text, int $imageType = -1, string $imagePath = "", ?string $label = null) : void { + public function addButton(string $text, int $imageType = -1, string $imagePath = "", mixed $label = null) : void { $content = ["text" => $text]; if($imageType !== -1) { $content["image"]["type"] = $imageType === 0 ? "path" : "url"; From dd9e51011872c6812f25c43dd80b57aba6f4ef1b Mon Sep 17 00:00:00 2001 From: poggit-bot Date: Thu, 21 Jul 2022 14:26:35 -0500 Subject: [PATCH 2/3] Create .poggit.yml Poggit-CI is enabled for this repo by @IvanCraft623 Visit the Poggit-CI page for this repo at https://poggit.pmmp.io/ci/IvanCraft623/FormAPI --- .poggit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.poggit.yml b/.poggit.yml index 5a9dc5c..33460a7 100644 --- a/.poggit.yml +++ b/.poggit.yml @@ -1,6 +1,6 @@ ---- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/jojoe77777/FormAPI +--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/IvanCraft623/FormAPI branches: -- master +- stable projects: FormAPI: path: "" From 0b37c9ba2a3c27758c8409e8f845ebf061746b3c Mon Sep 17 00:00:00 2001 From: IvanCraft623 Date: Thu, 21 Jul 2022 14:29:25 -0500 Subject: [PATCH 3/3] Revert "Create .poggit.yml " This reverts commit dd9e51011872c6812f25c43dd80b57aba6f4ef1b. --- .poggit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.poggit.yml b/.poggit.yml index 33460a7..5a9dc5c 100644 --- a/.poggit.yml +++ b/.poggit.yml @@ -1,6 +1,6 @@ ---- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/IvanCraft623/FormAPI +--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/jojoe77777/FormAPI branches: -- stable +- master projects: FormAPI: path: ""