This could possibly use LoggerFactory & friends to use them as
parameters, but either way let's sort the entries so they're
at least remotely capable of self-grouping.
Change-Id: Iaf435093d70add02e2f82e3037c64fec11870979
function __destruct() {
$n = count( $this->bufferedJobs );
if ( $n > 0 ) {
- $type = implode( ', ', array_unique( array_map( 'get_class', $this->bufferedJobs ) ) );
+ $type = implode( ', ', array_unique( array_map( 'get_class', $this->bufferedJobs ),
+ SORT_STRING ) );
trigger_error( __METHOD__ . ": $n buffered job(s) of type(s) $type never inserted." );
}
}