From 1e158b9974e5a4335d3c45c780a1c677e155e5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=97=AD=E6=BA=90?= Date: Sun, 31 Mar 2024 02:08:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=94=AF=E6=8C=81PHP8.1=E5=8F=8A=E4=BB=A5=E4=B8=8A=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20=E4=B8=8D=E5=86=8D=E6=94=AF=E6=8C=81PHP=207.1?= =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- src/Driver/CustomComponent.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 89d33cc..4f68f12 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "source": "https://github.com/xaboy/form-builder" }, "require": { - "php": ">=5.4.0", + "php": ">=7.1.0", "ext-json": "*", "symfony/http-foundation": ">=2.6", "doctrine/annotations": "^1.2.7" diff --git a/src/Driver/CustomComponent.php b/src/Driver/CustomComponent.php index 8812287..b51f866 100644 --- a/src/Driver/CustomComponent.php +++ b/src/Driver/CustomComponent.php @@ -94,27 +94,27 @@ public function build() return $this->appendRule + $this->getRule(); } - public function jsonSerialize() + public function jsonSerialize(): mixed { return $this->build(); } - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->props[$offset]); } - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->props[$offset]; } - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { $this->props[$offset] = $value; } - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->props[$offset]); } From 25eacad2bcc98837a500a1e2933b9badbbdc4424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=97=AD=E6=BA=90?= Date: Sun, 31 Mar 2024 02:21:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=94=AF=E6=8C=81PHP8.1=E5=8F=8A=E4=BB=A5=E4=B8=8A=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20=E4=B8=8D=E5=86=8D=E6=94=AF=E6=8C=81PHP=207.1?= =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 4f68f12..18037bc 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "xaboy/form-builder", + "name": "TestAdmin007/form-builder", "description": "PHP表单生成器,快速生成现代化的form表单。包含复选框、单选框、输入框、下拉选择框等元素以及,省市区三级联动,时间选择,日期选择,颜色选择,文件/图片上传等功能。", "license": "MIT", "keywords": [ @@ -10,11 +10,11 @@ "element-ui", "iview" ], - "homepage": "https://github.com/xaboy/form-builder", + "homepage": "https://github.com/TestAdmin007/form-builder", "authors": [ { - "name": "xaboy", - "email": "xaboy2005@qq.com" + "name": "程旭源", + "email": "admin@zhangp.cn" } ], "autoload": { @@ -23,8 +23,8 @@ } }, "support": { - "issues": "https://github.com/xaboy/form-builder/issues", - "source": "https://github.com/xaboy/form-builder" + "issues": "https://github.com/TestAdmin007/form-builder/issues", + "source": "https://github.com/TestAdmin007/form-builder" }, "require": { "php": ">=7.1.0", From 31083a29b9c20f558f87010f17ce6615e477e482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=97=AD=E6=BA=90?= Date: Sun, 31 Mar 2024 02:26:56 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=94=AF=E6=8C=81PHP8.1=E5=8F=8A=E4=BB=A5=E4=B8=8A=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20=E4=B8=8D=E5=86=8D=E6=94=AF=E6=8C=81PHP=207.1?= =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 18037bc..751b079 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "TestAdmin007/form-builder", + "name": "cxy/form-builder", "description": "PHP表单生成器,快速生成现代化的form表单。包含复选框、单选框、输入框、下拉选择框等元素以及,省市区三级联动,时间选择,日期选择,颜色选择,文件/图片上传等功能。", "license": "MIT", "keywords": [