doAddOrDel() throws an exception if the getPropertyMethod doesn't find a method

Created on 15 December 2024, 4 days ago

Problem/Motivation

In this block ....

    if ($method = $this->getPropertyMethod($action, $name)) {
      $value = call_user_func_array([$this, $method], $args);
    }
    if ($value) {
      // Allow declared methods to do a pass-through, and/or process data later.
      $values[] = $value;
    }

if $method doesn't evaluate to true $value never gets set which will then lead to the following warning...

warning: undefined variable $value in drupal\apitools\responseobject->doaddordel() line 140
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024