Skip to content

Conversation

@provokateurin
Copy link
Member

@provokateurin provokateurin commented Mar 24, 2023

Summary

Checklist

@provokateurin provokateurin force-pushed the update/psalm-5 branch 2 times, most recently from 0da5bdd to f752b68 Compare March 27, 2023 10:46
* @param bool $isAvailable
*/
public function setAvailability($available) {
public function setAvailability($isAvailable) {

Check notice

Code scanning / Psalm

MissingReturnType

Method OCA\Files_Sharing\SharedStorage::setAvailability does not have a return type, expecting void
@$this->invokeLDAPMethod('modReplace', $userDN, $password);
} catch (ConstraintViolationException $e) {
throw new HintException('Password change rejected.', \OC::$server->getL10N('user_ldap')->t('Password change rejected. Hint: ') . $e->getMessage(), (int)$e->getCode());
throw new HintException('Password change rejected.', \OC::$server->getL10N('user_ldap')->t('Password change rejected. Hint: ') . $e->getMessage(), $e->getCode());

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OC\Server::getL10N has been marked as deprecated
@provokateurin provokateurin force-pushed the update/psalm-5 branch 4 times, most recently from 9bc45e9 to c7ec317 Compare March 30, 2023 05:55
// Create a new job and store the creation date
$this->jobList->add(ResetTokenBackgroundJob::class);
$this->config->setAppValue('core', 'updater.secret.created', $this->timeFactory->getTime());
$this->config->setAppValue('core', 'updater.secret.created', (string)$this->timeFactory->getTime());

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OCP\AppFramework\Utility\ITimeFactory::getTime has been marked as deprecated
@provokateurin provokateurin mentioned this pull request Mar 30, 2023
8 tasks
@provokateurin provokateurin force-pushed the update/psalm-5 branch 3 times, most recently from d634595 to 0be733b Compare March 30, 2023 15:23
@provokateurin provokateurin marked this pull request as ready for review March 30, 2023 15:28
@provokateurin
Copy link
Member Author

I already tried fixing a lot of the new found issues, but it's getting out of hand. What I did now is just ignore all the new errors so that we can finally have psalm 5.

@provokateurin
Copy link
Member Author

No idea what the failing security analysis means, the output by psalm seems to be incorrect.

@kesselb
Copy link
Contributor

kesselb commented Apr 25, 2023

image

Haha ;) An error on line 0 is not allowed 🤣

Copy link
Contributor

@kesselb kesselb left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@provokateurin
Copy link
Member Author

Yeah I filed an issue at vimeo/psalm#9712, I hope it gets fixed soon.

Signed-off-by: jld3103 <[email protected]>
@provokateurin provokateurin enabled auto-merge May 2, 2023 11:43
@provokateurin provokateurin merged commit 436a088 into master May 2, 2023
@provokateurin provokateurin deleted the update/psalm-5 branch May 2, 2023 12:55
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.

5 participants