diff --git a/composer.json b/composer.json index 89d33cc..751b079 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "xaboy/form-builder", + "name": "cxy/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,11 +23,11 @@ } }, "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": ">=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]); }