fix: index lengths.

This commit is contained in:
Darshan 2025-06-12 16:16:55 +05:30
parent b1f7f08b9a
commit ffec769f4a

View file

@ -164,7 +164,7 @@ class Create extends Action
throw new Exception($this->getParentNotAvailableException(), "$contextType not available: " . $oldAttributes[$attributeIndex]['key']);
}
$lengths[$i] = null;
$lengths[$i] ??= null;
if ($attributeArray === true) {
$lengths[$i] = Database::ARRAY_INDEX_LENGTH;