/** * Determine the first nested property separator in the * given property path, ignoring separators in keys (like "map[my_key]"). * * @param string $propertyPath the property path to check * @return int the index of the nested property separator, or -1 if none */ function getLastNestedPropertySeparatorIndex($propertyPath) { return BeanWrapperUtils::getNestedPropertySeparatorIndex($propertyPath, true); }