mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
PHP80 小修 (#187)
* migrate-php80 fix styles fix static analyse * fix some bugs
This commit is contained in:
@@ -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 = []
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user