diff --git a/src/ContextActivities.php b/src/ContextActivities.php index 31da588..1b618a9 100644 --- a/src/ContextActivities.php +++ b/src/ContextActivities.php @@ -62,7 +62,7 @@ public function asVersion($version) { foreach (self::$directProps as $k) { $inner = $this->$k; if (isset($inner) && count($inner) > 0) { - $result = $result || array(); + $result = $result ?: array(); $result[$k] = array();