Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #38355

$trashFilename = substr_replace(
$trashFilename,
'',
$maxLength / 2,

Check failure

Code scanning / Psalm

InvalidScalarArgument

Argument 3 of substr_replace expects array<array-key, int>|int, float|int provided
Copy link
Contributor

Choose a reason for hiding this comment

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

Psalm error seems legit, this should be an int. How come it did not complain on original PR?

Copy link
Member

Choose a reason for hiding this comment

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

@blizzz blizzz merged commit b991751 into stable25 Jun 5, 2023
@blizzz blizzz deleted the backport/38355/stable25 branch June 5, 2023 15:41
@blizzz blizzz mentioned this pull request Jun 12, 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