From 591aaa415464e1f45b5bb914756fbbb3ed5336fa Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 19 Jul 2017 11:08:43 +0200 Subject: [PATCH] Add workaround for https://github.com/etsy/phan/issues/1033 Signed-off-by: Lukas Reschke --- build/.phan/config.php | 1 - lib/private/Hooks/LegacyEmitter.php | 7 +++++++ lib/private/Hooks/PublicEmitter.php | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build/.phan/config.php b/build/.phan/config.php index 9aefeafd64..0e3e278851 100644 --- a/build/.phan/config.php +++ b/build/.phan/config.php @@ -21,7 +21,6 @@ return [ 'lib/composer', 'themes', 'lib/', - 'apps/files_external/3rdparty', 'apps/', 'core/', 'ocs/', diff --git a/lib/private/Hooks/LegacyEmitter.php b/lib/private/Hooks/LegacyEmitter.php index 4f936e8aab..d18bb88eae 100644 --- a/lib/private/Hooks/LegacyEmitter.php +++ b/lib/private/Hooks/LegacyEmitter.php @@ -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); diff --git a/lib/private/Hooks/PublicEmitter.php b/lib/private/Hooks/PublicEmitter.php index 4bdaeec3b4..b34769d9b0 100644 --- a/lib/private/Hooks/PublicEmitter.php +++ b/lib/private/Hooks/PublicEmitter.php @@ -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);