<?php
class AbstractProvider {
}
class GenericProvider extends AbstractProvider {
}
interface Oauth2ClientPluginInterface {
public function getProvider(): AbstractProvider;
}
class OAuth2ClientPluginBase implements Oauth2ClientPluginInterface {
public function getProvider(): AbstractProvider {
}
}
class Oauuth2Plugin extends OAuth2ClientPluginBase {
public function getProvider(): GenericProvider {
}
}
Fatal error: Declaration of Oauuth2Plugin::getProvider(): GenericProvider must be compatible with OAuth2ClientPluginBase::getProvider(): AbstractProvider in /in/E1l6t on line 22
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Fatal error: Declaration of Oauuth2Plugin::getProvider(): GenericProvider must be compatible with Oauth2ClientPluginInterface::getProvider(): AbstractProvider in /in/E1l6t on line 22
Process exited with code 255.