Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Sep 8, 2022

  • ⚠️ This backport had conflicts and is incomplete

backport of #33804

@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 22.2.11 milestone Sep 8, 2022

$files_view = new View('/'.$uid .'/files');
/** @var IRootFolder $rootFolder */
$rootFolder = \OC::$server->get(IRootFolder::class);

Check failure

Code scanning / Psalm

UndefinedDocblockClass

Docblock-defined class, interface or enum named OCA\Files_Versions\IRootFolder does not exist

$files_view = new View('/'.$uid .'/files');
/** @var IRootFolder $rootFolder */
$rootFolder = \OC::$server->get(IRootFolder::class);

Check failure

Code scanning / Psalm

UndefinedClass

Class, interface or enum named OCA\Files_Versions\IRootFolder does not exist
$files_view = new View('/'.$uid .'/files');
/** @var IRootFolder $rootFolder */
$rootFolder = \OC::$server->get(IRootFolder::class);
$userFolder = $rootFolder->getUserFolder($uid);

Check failure

Code scanning / Psalm

UndefinedDocblockClass

Docblock-defined class, interface or enum named OCA\Files_Versions\IRootFolder does not exist
if ($file->getSize() === 0) {
return false;
}

Check failure

Code scanning / Psalm

UndefinedVariable

Cannot find referenced variable $file
$event = new CreateVersionEvent($file);
$eventDispatcher->dispatch('OCA\Files_Versions::createVersion', $event);
if ($event->shouldCreateVersion() === false) {
return false;

Check failure

Code scanning / Psalm

UndefinedVariable

Cannot find referenced variable $file
$eventDispatcher->dispatch('OCA\Files_Versions::createVersion', $event);
if ($event->shouldCreateVersion() === false) {
return false;
}

Check failure

Code scanning / Psalm

TooManyArguments

Too many arguments for method Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatch - saw 2
$eventDispatcher->dispatch('OCA\Files_Versions::createVersion', $event);
if ($event->shouldCreateVersion() === false) {
return false;
}

Check failure

Code scanning / Psalm

InvalidArgument

Argument 1 of Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch expects object, "OCA\\Files_Versions::createVersion" provided
@blizzz
Copy link
Member

blizzz commented Oct 6, 2022

@icewind1991 conflicts

@blizzz
Copy link
Member

blizzz commented Nov 3, 2022

still

@blizzz
Copy link
Member

blizzz commented Dec 8, 2022

closing

@blizzz blizzz closed this Dec 8, 2022
@skjnldsv skjnldsv deleted the backport/33804/stable22 branch March 14, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants