Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / finder / Iterator / SortableIterator.php
index f1134c00b9489ed91af9631df9ef25448eb530d9..53f8e31c6c4291db03ce77281bdccd416ccaef79 100644 (file)
@@ -28,8 +28,6 @@ class SortableIterator implements \IteratorAggregate
     private $sort;
 
     /**
-     * Constructor.
-     *
      * @param \Traversable $iterator The Iterator to filter
      * @param int|callable $sort     The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)
      *
@@ -65,7 +63,7 @@ class SortableIterator implements \IteratorAggregate
             $this->sort = function ($a, $b) {
                 return $a->getMTime() - $b->getMTime();
             };
-        } elseif (is_callable($sort)) {
+        } elseif (\is_callable($sort)) {
             $this->sort = $sort;
         } else {
             throw new \InvalidArgumentException('The SortableIterator takes a PHP callable or a valid built-in sort algorithm as an argument.');