DependencyAnalyzer.php

Working Nextcloud server 13.0.4 on a debian stretch stable, running apache2/mysql/redis/letsencrypt/fai2ban/…

From time to times, i got those error.

|Error|PHP|Array to string conversion at /var/www/html/lib/private/App/DependencyAnalyzer.php#356|2018-07-05T11:44:48+0200|
|---|---|---|---|
|Error|PHP|Array to string conversion at /var/www/html/lib/private/App/DependencyAnalyzer.php#356|2018-07-05T03:35:41+0200|
|Error|PHP|Array to string conversion at /var/www/html/lib/private/App/DependencyAnalyzer.php#356|2018-07-04T20:10:46+0200|
|Error|PHP|closedir() expects parameter 1 to be resource, boolean given at /var/www/html/apps/files_snapshots/lib/SnapshotManager.php#62|2018-07-04T14:09:47+0200|
|Error|PHP|readdir() expects parameter 1 to be resource, boolean given at /var/www/html/apps/files_snapshots/lib/SnapshotManager.php#56|2018-07-04T14:09:47+0200|
|Error|PHP|Undefined offset: 1 at /var/www/html/apps/files_snapshots/lib/SnapshotManager.php#48|2018-07-04T14:09:47+0200|

Have no clue. Not blocking.

  /**
 * @param $element
 * @return mixed
 */
private function getValue($element) {
        if (isset($element['@value'])) {
                return $element['@value'];
        }
        return (string)$element;
}
}