Skip to content

[stable26] fix(workflow): Fix "Call to a member function getUID() on null" with …#41419

Merged
nickvergessen merged 1 commit intostable26from
backport/41404/stable26
Nov 13, 2023
Merged

[stable26] fix(workflow): Fix "Call to a member function getUID() on null" with …#41419
nickvergessen merged 1 commit intostable26from
backport/41404/stable26

Conversation

@backportbot-nextcloud
Copy link

Backport of #41404

…appdata

Signed-off-by: Joas Schilling <coding@schilljs.com>
try {
$node = $this->getNode();
if ($node->getOwner()->getUID() === $uid) {
if ($node->getOwner()?->getUID() === $userId) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction

OCP\IUser does not contain null
try {
$node = $this->getNode();
if ($node->getOwner()->getUID() === $uid) {
if ($node->getOwner()?->getUID() === $userId) {

Check notice

Code scanning / Psalm

RedundantConditionGivenDocblockType

Docblock-defined type OCP\IUser for $__tmp_nullsafe__4692 is never null
@nickvergessen nickvergessen merged commit 8dd9edc into stable26 Nov 13, 2023
@nickvergessen nickvergessen deleted the backport/41404/stable26 branch November 13, 2023 13:59
@blizzz blizzz mentioned this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants