Skip to content

Conversation

@backportbot-nextcloud
Copy link

Backport of #41404

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.

4 participants