Sylius/SyliusAssortmentBundle — comment on commit 1aece260248bd4fd1971e6b9425a2f3890ed7a35
File: Sorting/ORM/ProductSorter.php line 26
By umpirsky:

Why not this way:

`public function sort(QueryBuilder $sortable)`

and avoid checking instance and throwing exception.

It is more readable IMO and this kind of error should be caught in tests.