Recording kinda working but not quite

This commit is contained in:
2017-02-13 22:50:11 +01:00
parent b347a8e22b
commit efee6d3ef4
12 changed files with 399 additions and 115 deletions

View File

@@ -26,8 +26,9 @@ class PropertyList implements ArrayAccess, IteratorAggregate, Countable
public function offsetGet($key)
{
if (!array_key_exist($key, $this->properties)) {
throw new InvalidArgumentException("No such property: {$key}");
if (!array_key_exists($key, $this->properties)) {
return null;
// throw new InvalidArgumentException("No such property: {$key}");
}
return $this->properties[$key];
}