]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ACLFormatter.php
Now using only a single array
[friendica.git] / src / Util / ACLFormatter.php
index d194e2e67eda93e3de339e5a8b96a9d6063c44b6..a7d851508d4e22d1c9441b959eb541c56e2875b9 100644 (file)
@@ -14,13 +14,13 @@ final class ACLFormatter
         *
         * @param string|null $ids A angle-bracketed list of IDs
         *
-        * @return array|null The array based on the IDs (null in case there is no list)
+        * @return array The array based on the IDs (empty in case there is no list)
         */
        public function expand(string $ids = null)
        {
-               // In case there is no ID list, return null (=> no ACL set)
+               // In case there is no ID list, return empty array (=> no ACL set)
                if (!isset($ids)) {
-                       return null;
+                       return [];
                }
 
                // turn string array of angle-bracketed elements into numeric array