Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Asset / LibraryDependencyResolver.php
index 95fca186614fc944976b059e7083913acafb73ec..b84b8fac9ef739d167b0d2ea5fe51cebadd44f7a 100644 (file)
@@ -65,6 +65,8 @@ class LibraryDependencyResolver implements LibraryDependencyResolverInterface {
    * {@inheritdoc}
    */
   public function getMinimalRepresentativeSubset(array $libraries) {
+    assert(count($libraries) === count(array_unique($libraries)), '$libraries can\'t contain duplicate items.');
+
     $minimal = [];
 
     // Determine each library's dependencies.