joachim-n / mutable-typed-data

Typed data system with mutable properties
GNU General Public License v3.0
1 stars 2 forks source link

Malformed address can cause a crash in evaluating a default #4

Open joachim-n opened 3 years ago

joachim-n commented 3 years ago
          $target_item = $item->getItem($address);

which can lead to:

        if ($ref->hasProperty($child_name)) {

and if $ref is ArrayData, then there's a crash because hasProperty() is not defined on those.

We need an equivalent to isSimple().