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

Update Psalm to 5.9 to sync with server #2646

Merged
merged 4 commits into from
Dec 4, 2023
Merged

Update Psalm to 5.9 to sync with server #2646

merged 4 commits into from
Dec 4, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Nov 28, 2023

This should fix :
ERROR: InvalidArgument - lib/AppInfo/Application.php:95:60 - Argument 2 of OCP\AppFramework\Bootstrap\IRegistrationContext::registerEventListener expects class-string<OCP\EventDispatcher\IEventListener<OCP\EventDispatcher\Event>>, OCA\GroupFolders\Listeners\NodeRenamedListener::class provided

But it will find other errors that I’ll fix in here.

Dev Changes From To Compare
nextcloud/ocp 5c5b6d8 5047d4e ...
psalm/phar 4.18.1 5.16.0 ...
psr/container 1.1.2 2.0.2 ...

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added the 2. developing Items that are currently under development label Nov 28, 2023
@come-nc come-nc self-assigned this Nov 28, 2023
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added 3. to review Items that need to be reviewed and removed 2. developing Items that are currently under development labels Nov 30, 2023
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;

/**
* @template-implements IEventListener<LoadAdditionalScriptsEvent|BeforeTemplateRenderedEvent>
Copy link
Contributor

Choose a reason for hiding this comment

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

It never works when I use | is that situation. Any trick or it simply worked for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, it first failed because I had forgotten to use the classes, but then it worked. Also I think this kind of things were improved in last psalm versions.

@come-nc come-nc merged commit f28589d into master Dec 4, 2023
19 checks passed
@come-nc come-nc deleted the fix/update-psalm branch December 4, 2023 09:54
@come-nc
Copy link
Contributor Author

come-nc commented Dec 21, 2023

/backport to stable28

@backportbot-nextcloud
Copy link

The backport to stable28 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable28
git pull origin stable28

# Create the new backport branch
git checkout -b fix/foo-stable28

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable28

Error: Unknown error

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Items that need to be reviewed backport-request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants