Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Controller/AlbumsController.php6
-rw-r--r--lib/Controller/ApiController.php2
-rw-r--r--tests/psalm-baseline.xml4
3 files changed, 4 insertions, 8 deletions
diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php
index 67560248..48862927 100644
--- a/lib/Controller/AlbumsController.php
+++ b/lib/Controller/AlbumsController.php
@@ -33,7 +33,7 @@ use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
-use OCP\FIles\Node;
+use OCP\Files\Node;
use OCP\Files\NotFoundException;
use OCP\Files\StorageNotAvailableException;
use OCP\IPreview;
@@ -43,10 +43,10 @@ class AlbumsController extends Controller {
/** @var string */
private $userId;
-
+
/** @var IRootFolder */
private $rootFolder;
-
+
/** @var IPreview */
private $previewManager;
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php
index 0b247249..4c89566e 100644
--- a/lib/Controller/ApiController.php
+++ b/lib/Controller/ApiController.php
@@ -77,7 +77,7 @@ class ApiController extends Controller {
* @NoAdminRequired
* @NoCSRFRequired
*/
- public function serviceWorker() {
+ public function serviceWorker(): StreamResponse {
$response = new StreamResponse(__DIR__.'/../../js/photos-service-worker.js');
$response->setHeaders([
'Content-Type' => 'application/javascript',
diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml
index 693c0ea0..a5efd6d7 100644
--- a/tests/psalm-baseline.xml
+++ b/tests/psalm-baseline.xml
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476">
<file src="lib/Controller/AlbumsController.php">
- <InvalidClass occurrences="2">
- <code>$node</code>
- <code>Node</code>
- </InvalidClass>
<MissingDependency occurrences="5">
<code>$this-&gt;rootFolder</code>
<code>$this-&gt;rootFolder</code>