Merge pull request #17937 from seamuslee001/radio_jquery_require
[civicrm-core.git] / Civi / Core / Transaction / Manager.php
index eb830c88502ef2c9b0693d039e5d9e99f1e0d6c7..263e39fa01f178f5f7178038bb2257475f7f8430 100644 (file)
@@ -26,7 +26,9 @@ class Manager {
   private $dao;
 
   /**
-   * @var array<Frame> stack of SQL transactions/savepoints
+   * Stack of SQL transactions/savepoints.
+   *
+   * @var \Civi\Core\Transaction\Frame[]
    */
   private $frames = [];
 
@@ -127,7 +129,7 @@ class Manager {
    * @return \Civi\Core\Transaction\Frame
    */
   public function getFrame() {
-    return isset($this->frames[0]) ? $this->frames[0] : NULL;
+    return $this->frames[0] ?? NULL;
   }
 
   /**