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

Remove unneeded casts that were found by Psalm #25073

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

MorrisJobke
Copy link
Member

In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see #24521)

This is basically a split from the above PR to isolate the problem in that PR.

In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see #24521)

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke force-pushed the psalm/24521/remove-unneeded-casts branch from 31ca28d to 24d436c Compare January 11, 2021 12:14
@@ -85,7 +85,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
foreach ($lines as $index => $line) {
$index = $index + 1;

$x = (int) 1;
$x = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

🙈

@MorrisJobke MorrisJobke merged commit 5ed673e into master Jan 11, 2021
@MorrisJobke MorrisJobke deleted the psalm/24521/remove-unneeded-casts branch January 11, 2021 13:15
@MorrisJobke MorrisJobke added this to the Nextcloud 21 milestone Jan 11, 2021
@rullzer rullzer mentioned this pull request Jan 12, 2021
14 tasks
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.

3 participants