Skip to content

Allow to cast resource to float#4314

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:resourceToFloat
Sep 12, 2025
Merged

Allow to cast resource to float#4314
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:resourceToFloat

Conversation

@VincentLanglet
Copy link
Contributor

Part of phpstan/phpstan#6560
but not all, (I leave phpstan/phpstan#6560 (comment))

#4152 was wrong, since we can cast a resource to float the same way we can cast it to int.

@ondrejmirtes ondrejmirtes merged commit b9f5f12 into phpstan:2.1.x Sep 12, 2025
449 of 456 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

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.

2 participants