Skip to content

Commit

Permalink
Allow any value to be passed to Assertion::isCountable() (#303)
Browse files Browse the repository at this point in the history
* Allow any value to be passed to Assertion::isCountable()

Static analysis tools complain about type of `$value` argument but in fact it could be of any type since it will be checked later (that's the purpose of the method).

* Revert unwanted changes

Github's web IDE did something weird I think, I did not change those line on purpose (obviously).
  • Loading branch information
Wirone authored Sep 27, 2022
1 parent cb70015 commit e74044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Assert/Assertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ public static function isArrayAccessible($value, $message = null, string $proper
/**
* Assert that value is countable.
*
* @param array|Countable|ResourceBundle|SimpleXMLElement $value
* @param mixed $value
* @param string|callable|null $message
* @param string|null $propertyPath
*
Expand Down

0 comments on commit e74044d

Please sign in to comment.