diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-19 11:08:43 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-07-19 11:08:43 +0200 |
commit | 591aaa415464e1f45b5bb914756fbbb3ed5336fa (patch) | |
tree | 6e1262059dec1efde870e1c2cf3b0dc26bc81957 | |
parent | e96c823f17a3532497a7de420a2c3931da40a9e4 (diff) | |
download | nextcloud-server-591aaa415464e1f45b5bb914756fbbb3ed5336fa.tar.gz nextcloud-server-591aaa415464e1f45b5bb914756fbbb3ed5336fa.zip |
Add workaround for https://github.com/etsy/phan/issues/1033
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r-- | build/.phan/config.php | 1 | ||||
-rw-r--r-- | lib/private/Hooks/LegacyEmitter.php | 7 | ||||
-rw-r--r-- | lib/private/Hooks/PublicEmitter.php | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/build/.phan/config.php b/build/.phan/config.php index 9aefeafd647..0e3e2788510 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 4f936e8aab5..d18bb88eae6 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 4bdaeec3b49..b34769d9b09 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); |