Closed jdreesen closed 7 years ago
The Boolean argument $convertToCollection should be checked first because it's cheaper to check a Boolean than to call a function and if $convertToCollection is false the function call will be skipped.
$convertToCollection
false
This is a micro-optimization though.
Makes sense. Thanks for the contribution.
The Boolean argument
$convertToCollection
should be checked first because it's cheaper to check a Boolean than to call a function and if$convertToCollection
isfalse
the function call will be skipped.This is a micro-optimization though.