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

Merged
merged 1 commit into from
Nov 23, 2024
Merged

Specify allow round methods #4431

merged 1 commit into from
Nov 23, 2024

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Nov 2, 2024

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.

@ruudk
Copy link
Contributor Author

ruudk commented Nov 18, 2024

@fabpot can this be merged?

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

ruudk commented Nov 23, 2024

@fabpot Let's merge or close this one.

@fabpot
Copy link
Contributor

fabpot commented Nov 23, 2024

Thank you @ruudk.

@fabpot fabpot merged commit cd611c1 into twigphp:3.x Nov 23, 2024
48 of 50 checks passed
@ruudk ruudk deleted the patch-3 branch November 23, 2024 08:15
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.

4 participants