mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
#PHRAS-741 #time 5m
removed type hinting :( to allow null argument
This commit is contained in:
@@ -14,10 +14,10 @@ class AccountRelated extends Event
|
||||
protected $args;
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param User|null $user
|
||||
* @param array|null $args
|
||||
*/
|
||||
public function __construct(User $user, Array $args = null)
|
||||
public function __construct($user, Array $args = null)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->args = $args;
|
||||
|
||||
@@ -15,7 +15,7 @@ class CollectionRelated extends Event
|
||||
* @param \collection|null $collection
|
||||
* @param array|null $args
|
||||
*/
|
||||
public function __construct(\collection $collection, array $args = null)
|
||||
public function __construct($collection, array $args = null)
|
||||
{
|
||||
$this->collection = $collection;
|
||||
$this->args = $args;
|
||||
|
||||
@@ -16,7 +16,7 @@ class DataboxRelated extends Event
|
||||
* @param \databox|null $databox
|
||||
* @param array|null $args
|
||||
*/
|
||||
public function __construct(\databox $databox, array $args = null)
|
||||
public function __construct($databox, array $args = null)
|
||||
{
|
||||
$this->databox = $databox;
|
||||
$this->args = $args;
|
||||
|
||||
Reference in New Issue
Block a user