Commit 3a098e5f authored by Sergiu Stici's avatar Sergiu Stici Committed by Jakob P
Browse files

Issue #3261507 by Sergiu Stici: In php 8.1 the explode function throws a...

Issue #3261507 by Sergiu Stici: In php 8.1 the explode function throws a notice when default value is null
parent c5bbcae0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ trait CachedValuesGetterTrait {
   * @return mixed
   */
  protected function getCachedValues(SharedTempStoreFactory $tempstore, $tempstore_id, $machine_name) {
    $machine_name = explode('--', $machine_name);
    $machine_name = explode('--', $machine_name ?? '');
    $cached_values = $tempstore->get($tempstore_id)->get($machine_name[0]);
    // PageManager specific handling. If $machine_name[1] is set, it's the
    // page variant ID.