PHP80 小修 (#187)

* migrate-php80

fix styles
fix static analyse

* fix some bugs
This commit is contained in:
sunxyw
2022-12-19 20:22:47 +08:00
committed by GitHub
parent da516b487d
commit 8ff7da4d23
46 changed files with 180 additions and 366 deletions

View File

@@ -21,18 +21,14 @@ use ZM\Annotation\Interfaces\ErgodicAnnotation;
class Middleware extends AnnotationBase implements ErgodicAnnotation
{
/**
* @Required()
* @param string[] $params
*/
public string $name;
/**
* @var string[]
*/
public array $params = [];
public function __construct($name, $params = [])
{
$this->name = $name;
$this->params = $params;
public function __construct(
/**
* @Required()
*/
public $name,
public array $params = []
) {
}
}