<?php
class A extends B
{
public function get($name, array $options = null){}
}
class B
{
public function get($name, $options = [], $usePeeringServiceManagers = true){}
}
Fatal error: Declaration of A::get($name, ?array $options = null) must be compatible with B::get($name, $options = [], $usePeeringServiceManagers = true) in /in/4sdoZ on line 5
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Declaration of A::get($name, ?array $options = NULL) should be compatible with B::get($name, $options = Array, $usePeeringServiceManagers = true) in /in/4sdoZ on line 5
Warning: Declaration of A::get($name, ?array $options = NULL) should be compatible with B::get($name, $options = Array, $usePeeringServiceManagers = true) in /in/4sdoZ on line 3
Output for 7.0.0 - 7.0.33
Warning: Declaration of A::get($name, array $options = NULL) should be compatible with B::get($name, $options = Array, $usePeeringServiceManagers = true) in /in/4sdoZ on line 3
Output for 5.6.38 - 5.6.40
Strict Standards: Declaration of A::get() should be compatible with B::get($name, $options = Array, $usePeeringServiceManagers = true) in /in/4sdoZ on line 4