[ci skip]
Since PHP cannot serialize closures we switched to a private method to check if a SORT command is a read-only operation, but closures are still supported even if they will make the connection unserializable.