Augmentation vers version 3.3.0

This commit is contained in:
Gauvain Boiché
2020-03-31 15:31:03 +02:00
parent d926806907
commit a1864c0414
2618 changed files with 406015 additions and 31377 deletions

View File

@@ -28,12 +28,12 @@ class DumperCollection implements \IteratorAggregate
/**
* @var DumperCollection[]|DumperRoute[]
*/
private $children = array();
private $children = [];
/**
* @var array
*/
private $attributes = array();
private $attributes = [];
/**
* Returns the children routes and collections.
@@ -106,7 +106,7 @@ class DumperCollection implements \IteratorAggregate
/**
* Sets the parent collection.
*/
protected function setParent(DumperCollection $parent)
protected function setParent(self $parent)
{
$this->parent = $parent;
}
@@ -120,7 +120,7 @@ class DumperCollection implements \IteratorAggregate
*/
public function hasAttribute($name)
{
return array_key_exists($name, $this->attributes);
return \array_key_exists($name, $this->attributes);
}
/**