Skip to content

Commit 4b330f9

Browse files
Make PHP 8 green on Travis
1 parent 4281b4e commit 4b330f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function normalize($object, $format = null, array $context = [])
108108
*
109109
* @return string[]
110110
*/
111-
protected function getAttributes($object, $format = null, array $context)
111+
protected function getAttributes($object, $format, array $context)
112112
{
113113
$class = \get_class($object);
114114
$key = $class.'-'.$context['cache_key'];

Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ class GetConstructorArgsWithDefaultValueDummy
728728
protected $foo;
729729
protected $bar;
730730

731-
public function __construct($foo = [], $bar)
731+
public function __construct($foo = [], $bar = null)
732732
{
733733
$this->foo = $foo;
734734
$this->bar = $bar;

Tests/Normalizer/ObjectNormalizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ class ObjectConstructorArgsWithDefaultValueDummy
925925
protected $foo;
926926
protected $bar;
927927

928-
public function __construct($foo = [], $bar)
928+
public function __construct($foo = [], $bar = null)
929929
{
930930
$this->foo = $foo;
931931
$this->bar = $bar;
@@ -1075,7 +1075,7 @@ class DummyWithConstructorObjectAndDefaultValue
10751075
private $foo;
10761076
private $inner;
10771077

1078-
public function __construct($foo = 'a', ObjectInner $inner)
1078+
public function __construct($foo = 'a', ObjectInner $inner = null)
10791079
{
10801080
$this->foo = $foo;
10811081
$this->inner = $inner;

0 commit comments

Comments
 (0)