Verified Commit d9b3bbb3 authored by Jess's avatar Jess
Browse files

fix: SA-CORE-2026-018

By: mcdruid
By: alexpott
By: catch
By: larowlan
By: smustgrave
By: xjm
parent db6779be
Loading
Loading
Loading
Loading
+9
Changes for core/lib/Drupal/Core/Discovery/YamlCacheCollectorDiscovery.php: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -65,4 +65,13 @@ public function __destruct() {
    $this->yamlCacheCollector->destruct();
  }

  /**
   * Prevents unserialization.
   *
   * @throws \BadMethodCallException
   */
  public function __unserialize(array $data): void {
    throw new \BadMethodCallException('Cannot unserialize ' . get_class($this));
  }

}