JobQueueGroup: Improve failed-to-insert error
[lhc/web/wiklou.git] / includes / jobqueue / JobQueueGroup.php
index addc7fc..21f09e5 100644 (file)
@@ -468,7 +468,8 @@ class JobQueueGroup {
        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." );
                }
        }