protected function markFunctionTypeProperty(array &$properties) { foreach ($properties as $key => &$value) { if (in_array($key, array_keys($this->functionTypeProperties))) { if (!in_array($value, $this->functionTypeProperties[$key])) { $value = '###' . $value . '###'; } } else { if (is_array($value) && array_values($value) != $value) { $this->markFunctionTypeProperty($value); } } } }