updated-packages
This commit is contained in:
@@ -21,9 +21,9 @@ class AcceptHeaderItem
|
||||
private $value;
|
||||
private $quality = 1.0;
|
||||
private $index = 0;
|
||||
private $attributes = array();
|
||||
private $attributes = [];
|
||||
|
||||
public function __construct(string $value, array $attributes = array())
|
||||
public function __construct(string $value, array $attributes = [])
|
||||
{
|
||||
$this->value = $value;
|
||||
foreach ($attributes as $name => $value) {
|
||||
@@ -157,7 +157,7 @@ class AcceptHeaderItem
|
||||
*/
|
||||
public function getAttribute($name, $default = null)
|
||||
{
|
||||
return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
|
||||
return $this->attributes[$name] ?? $default;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user