*/
class PropertyBag implements \ArrayAccess {
/**
- * @var array - see legacyWarning */
+ * @var array
+ * - see legacyWarning
+ */
public static $legacyWarnings = [];
protected $props = ['default' => []];
* @param array $data
*/
public function mergeLegacyInputParams($data) {
- $this->legacyWarning("We have merged input params into the property bag for now but please rewrite code to not use this.");
+ $this->legacyWarning('We have merged input params into the property bag for now but please rewrite code to not use this.');
foreach ($data as $key => $value) {
- if ($value !== NULL) {
+ if ($value !== NULL && $value !== '') {
$this->offsetSet($key, $value);
}
}