Please sign in to comment.
Stop warnings when using count in QueryCompiler in PHP 7.2
- PHP 7.2 has changed the count function to emit warnings when the object being "counted" is not an array or does not implement the Countable interface. The QueryCompiler was using count for objects that did not fall into those two categories. This fixes that problem while maintaining the same logic (returning early when $parts is not set, is null, or has a count of 0).
- Loading branch information...