As stated in the docblock, the `$object` parameter can be null. I guess that's why I inverted the parameters order.

Anyway, I updated the PR according to your suggestion.