Add workaround for https://github.com/etsy/phan/issues/1033
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
e96c823f17
commit
591aaa4154
3 changed files with 9 additions and 1 deletions
|
@ -21,7 +21,6 @@ return [
|
|||
'lib/composer',
|
||||
'themes',
|
||||
'lib/',
|
||||
'apps/files_external/3rdparty',
|
||||
'apps/',
|
||||
'core/',
|
||||
'ocs/',
|
||||
|
|
|
@ -24,6 +24,13 @@
|
|||
namespace OC\Hooks;
|
||||
|
||||
abstract class LegacyEmitter extends BasicEmitter {
|
||||
/**
|
||||
* @param string $scope
|
||||
* @param string $method
|
||||
* @param array $arguments
|
||||
*
|
||||
* @suppress PhanAccessMethodProtected
|
||||
*/
|
||||
protected function emit($scope, $method, array $arguments = array()) {
|
||||
\OC_Hook::emit($scope, $method, $arguments);
|
||||
parent::emit($scope, $method, $arguments);
|
||||
|
|
|
@ -28,6 +28,8 @@ class PublicEmitter extends BasicEmitter {
|
|||
* @param string $scope
|
||||
* @param string $method
|
||||
* @param array $arguments optional
|
||||
*
|
||||
* @suppress PhanAccessMethodProtected
|
||||
*/
|
||||
public function emit($scope, $method, array $arguments = array()) {
|
||||
parent::emit($scope, $method, $arguments);
|
||||
|
|
Loading…
Reference in a new issue