Extensions may implement hooks defined by other extensions. When the other extension is not present, the base class or interface of the hook handler may also not be present. In that case, we should still allow the handler to be registered. This is harmless, since the hook will never fire if the extension that defines it is not loaded. Bug: T339834 Change-Id: Id975370dececcb09ae5d00e6f68da57dc22fb267
14 lines
313 B
PHP
14 lines
313 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Tests;
|
|
|
|
/**
|
|
* A class that exists but cannot be instantiated because
|
|
* its base class does not exist. For testing logic related
|
|
* to class_exists and is_callable checks.
|
|
*/
|
|
class BrokenClass extends \Some\Thing\ThatDoesNotExist_8723465 {
|
|
public function aMethod() {
|
|
// noop
|
|
}
|
|
}
|