summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-19 11:08:43 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-07-19 11:08:43 +0200
commit591aaa415464e1f45b5bb914756fbbb3ed5336fa (patch)
tree6e1262059dec1efde870e1c2cf3b0dc26bc81957 /lib
parente96c823f17a3532497a7de420a2c3931da40a9e4 (diff)
downloadnextcloud-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>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Hooks/LegacyEmitter.php7
-rw-r--r--lib/private/Hooks/PublicEmitter.php2
2 files changed, 9 insertions, 0 deletions
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);