Skip to content

Conversation

@skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Oct 2, 2022

Fix #1385

@skjnldsv skjnldsv added the 3. to review Waiting for reviews label Oct 2, 2022
@skjnldsv skjnldsv self-assigned this Oct 2, 2022
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv
Copy link
Member Author

skjnldsv commented Oct 2, 2022

ERROR: UndefinedClass - lib/Listener/LoadViewerScript.php:50:59 - Class, interface or enum named OCA\Files\Event\LoadAdditionalScriptsEvent does not exist (see https://psalm.dev/019)
		if (!($event instanceof LoadViewer || $event instanceof LoadAdditionalScriptsEvent)) {

I don't get it.
https://github.com/nextcloud/server/blob/ac2bc2384efe3c15ff987b87a7432bc60d545c67/apps/files/lib/Event/LoadAdditionalScriptsEvent.php#L30

@nickvergessen @ChristophWurst do you see something I do not?

@skjnldsv

This comment was marked as resolved.

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request Pending backport by the backport-bot label Oct 2, 2022
@skjnldsv

This comment was marked as resolved.

@skjnldsv

This comment was marked as resolved.

@skjnldsv

This comment was marked as duplicate.

Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
@nickvergessen
Copy link
Member

I don't get it.
https://github.com/nextcloud/server/blob/ac2bc2384efe3c15ff987b87a7432bc60d545c67/apps/files/lib/Event/LoadAdditionalScriptsEvent.php#L30

OCA is not OCP, so it's expected illegal usage.

@skjnldsv skjnldsv merged commit a1539b8 into master Oct 4, 2022
@skjnldsv skjnldsv deleted the feat/psalm branch October 4, 2022 11:32
@backportbot-nextcloud backportbot-nextcloud bot removed the backport-request Pending backport by the backport-bot label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup psalm

3 participants