Skip to content

refactor: Modernize code with rector - #1482

Merged
CarlSchwan merged 4 commits into
mainfrom
carl/rector
Feb 10, 2026
Merged

refactor: Modernize code with rector#1482
CarlSchwan merged 4 commits into
mainfrom
carl/rector

Conversation

@CarlSchwan

Copy link
Copy Markdown
Member

No description provided.

@CarlSchwan
CarlSchwan force-pushed the carl/rector branch 6 times, most recently from fae97f1 to 7a3869d Compare February 6, 2026 16:45
Comment thread lib/Repair/ResetEmails.php Outdated
Comment thread lib/Storage/DirMask.php Outdated
Comment thread lib/GuestManager.php Outdated
Comment thread lib/Hooks.php
Comment thread lib/UserBackend.php Outdated
Comment thread tests/integration/features/bootstrap/GuestsContext.php Outdated
Comment thread tests/integration/features/bootstrap/GuestsContext.php Outdated
Comment thread tests/unit/Controller/UsersControllerTest.php
Comment thread tests/unit/GuestManagerTest.php
Signed-off-by: Carl Schwan <carlschwan@kde.org>
Signed-off-by: Carl Schwan <carlschwan@kde.org>
Signed-off-by: Carl Schwan <carlschwan@kde.org>
Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan
CarlSchwan enabled auto-merge February 10, 2026 12:53
@CarlSchwan
CarlSchwan merged commit b2113cc into main Feb 10, 2026
52 checks passed
@CarlSchwan
CarlSchwan deleted the carl/rector branch February 10, 2026 12:56
public function __construct($cache, $mask, callable $checkPath) {
public function __construct(
ICache $cache,
int $mask,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message: OCA\Guests\Storage\DirMaskCache::__construct(): Argument #2 ($mask) must be of type int, null given, called in /var/www/html/apps/guests/lib/Storage/DirMask.php on line 190 in file '/var/www/html/apps/guests/lib/Storage/DirMaskCache.php' line 21
File: /var/www/html/lib/private/AppFramework/Http/Dispatcher.php
Line: 107

Comment thread lib/Storage/DirMask.php
*/
private $pathLength;

private $mask;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removal of this is now trying to use PermissionsMask::$mask in getCache() but that is private instead of protected, so you can not use it, so it's null but the DirMaskCache is typed for int

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