forked from Cavemanon/cavepaintings
PHP7 type annotations
This commit is contained in:
@@ -27,9 +27,6 @@ class AdminBuildingEvent extends Event {
|
||||
/** @var \Page */
|
||||
public $page;
|
||||
|
||||
/**
|
||||
* @param Page $page
|
||||
*/
|
||||
public function __construct(Page $page) {
|
||||
$this->page = $page;
|
||||
}
|
||||
@@ -41,10 +38,7 @@ class AdminActionEvent extends Event {
|
||||
/** @var bool */
|
||||
public $redirect = true;
|
||||
|
||||
/**
|
||||
* @param string $action
|
||||
*/
|
||||
public function __construct(/*string*/ $action) {
|
||||
public function __construct(string $action) {
|
||||
$this->action = $action;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user