Skip to content

添加高版本支持 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "xaboy/form-builder",
"name": "cxy/form-builder",
"description": "PHP表单生成器,快速生成现代化的form表单。包含复选框、单选框、输入框、下拉选择框等元素以及,省市区三级联动,时间选择,日期选择,颜色选择,文件/图片上传等功能。",
"license": "MIT",
"keywords": [
Expand All @@ -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": "[email protected]"
"name": "程旭源",
"email": "[email protected]"
}
],
"autoload": {
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/Driver/CustomComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down