<?php
interface ServiceLocatorInterface
{
public function get($name);
}
class ServiceManager implements ServiceLocatorInterface {
public function get($name, $usePeeringServiceManagers = true) {}
}
class AbstractPluginManager extends ServiceManager
{
public function get($name, $options = [], $usePeeringServiceManagers = true){}
}
class PluginManager extends AbstractPluginManager
{
public function get($name, array $options = null){}
}
Fatal error: Declaration of PluginManager::get($name, ?array $options = null) must be compatible with AbstractPluginManager::get($name, $options = [], $usePeeringServiceManagers = true) in /in/Z7q5P on line 19
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Declaration of PluginManager::get($name, ?array $options = NULL) must be compatible with AbstractPluginManager::get($name, $options = Array, $usePeeringServiceManagers = true) in /in/Z7q5P on line 19
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Fatal error: Declaration of PluginManager::get($name, ?array $options = NULL) must be compatible with AbstractPluginManager::get($name, $options = Array, $usePeeringServiceManagers = true) in /in/Z7q5P on line 17
Process exited with code 255.