<?php
class AbstractProvider {
}
class GenericProvider extends AbstractProvider {
}
interface Oauth2ClientPluginInterface {
public function getProvider();
}
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/gOdGZ on line 22
Process exited with code 255.