Skip to content

Conversation

@thekid
Copy link
Member

@thekid thekid commented Aug 16, 2025

See #5, this makes the method align with how the pow function and the ** operator in PHP 9.0 will behave, albeit using the lang.IllegalArgumentException class instead of the DivisionByZeroError for consistency with the rest of this library's methods.

⚠️ This is a BC break, earlier versions expected 0 as a result of this operation.

@thekid thekid merged commit cc01346 into master Aug 16, 2025
22 checks passed
@thekid thekid deleted the refactor/raising_zero_to_power_of_negative_number branch August 16, 2025 07:48
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