Fix psalm errors and update baseline

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-11-10 17:11:15 -03:00 committed by Joas Schilling
parent 14bb70c5d4
commit fbe11e4506
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205
2 changed files with 10 additions and 8 deletions

View file

@ -33,7 +33,6 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\FileDisplayResponse;
use OCP\AppFramework\Http\Response;
use OCP\Files\IAppData;
use OCP\IL10N;
use OCP\IRequest;
use OCP\IUserSession;
@ -46,13 +45,11 @@ class AvatarController extends AEnvironmentAwareController {
public function __construct(
string $appName,
IRequest $request,
IAppData $appData,
AvatarService $avatarService,
IUserSession $userSession,
IL10N $l10n
) {
parent::__construct($appName, $request);
$this->appData = $appData;
$this->avatarService = $avatarService;
$this->userSession = $userSession;
$this->l = $l10n;

View file

@ -167,16 +167,16 @@
<code>null</code>
</NullArgument>
</file>
<file src="lib/Controller/ChatController.php">
<InvalidArrayOffset occurrences="1">
<code>$commentIdToIndex[$parentId]</code>
</InvalidArrayOffset>
</file>
<file src="lib/Controller/AvatarController.php">
<UndefinedClass occurrences="1">
<code>Filesystem</code>
</UndefinedClass>
</file>
<file src="lib/Controller/ChatController.php">
<InvalidArrayOffset occurrences="1">
<code>$commentIdToIndex[$parentId]</code>
</InvalidArrayOffset>
</file>
<file src="lib/Controller/PageController.php">
<MissingDependency occurrences="2">
<code>IRootFolder</code>
@ -258,6 +258,11 @@
<code>BeforeTemplateRenderedEvent</code>
</UndefinedClass>
</file>
<file src="lib/Service/AvatarService.php">
<UndefinedClass occurrences="1">
<code>\OC_Image</code>
</UndefinedClass>
</file>
<file src="lib/Share/Listener.php">
<InvalidArgument occurrences="1">
<code>[self::class, 'listenPreShare']</code>