]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make sure they are always arrays
authorJoas Schilling <coding@schilljs.com>
Fri, 11 Nov 2016 10:27:39 +0000 (11:27 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 16 Nov 2016 08:25:46 +0000 (09:25 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Activity/Manager.php

index c4f3d348dbe748c0f5f035c93cf927da74ecd817..35668a267ee144d06e86397b45bf3f160e6299c8 100644 (file)
@@ -252,10 +252,10 @@ class Manager implements IManager {
        }
 
        /** @var string[] */
-       protected $filterClasses;
+       protected $filterClasses = [];
 
        /** @var IFilter[] */
-       protected $filters;
+       protected $filters = [];
 
        /** @var bool */
        protected $loadedLegacyFilters = false;
@@ -322,10 +322,10 @@ class Manager implements IManager {
        }
 
        /** @var string[] */
-       protected $providerClasses;
+       protected $providerClasses = [];
 
        /** @var IProvider[] */
-       protected $providers;
+       protected $providers = [];
 
        /**
         * @param string $provider Class must implement OCA\Activity\IProvider
@@ -356,10 +356,10 @@ class Manager implements IManager {
        }
 
        /** @var string[] */
-       protected $settingsClasses;
+       protected $settingsClasses = [];
 
        /** @var ISetting[] */
-       protected $settings;
+       protected $settings = [];
 
        /** @var bool */
        protected $loadedLegacyTypes = false;