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

Specify allow round methods #4431

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from
Open

Specify allow round methods #4431

wants to merge 2 commits into from

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Nov 2, 2024

This way, PHPStan can validate invalid input.

This way, PHPStan can validate invalid input.
@ruudk
Copy link
Contributor Author

ruudk commented Nov 7, 2024

@fabpot this one is also ready

@smnandre
Copy link
Contributor

smnandre commented Nov 8, 2024

I think the return type is wrong too, as it is always a float

https://3v4l.org/aA0u3#v8.3.13

src/Extension/CoreExtension.php Outdated Show resolved Hide resolved
@ruudk
Copy link
Contributor Author

ruudk commented Nov 8, 2024

@smnandre You're right.

Also visible in the PHP docs http://php.net/round

Made the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants