Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Nov 13, 2023

Conversation

backportbot-nextcloud[bot]
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 Note

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 Note

Docblock-defined type OCP\IUser for $__tmp_nullsafe__4692 is never null
@nickvergessen nickvergessen merged commit 8dd9edc into stable26 Nov 13, 2023
37 checks passed
@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.

None yet

3 participants