From: Roland Häder Date: Fri, 10 Feb 2023 16:08:44 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=516c97967ce67dc0189a0eab88932a4401750699;p=core.git Continued: - let's try string for a moment, empty(0) gives FALSE back, but we need this for the first indexed array key --- diff --git a/framework/main/classes/class_BaseFrameworkSystem.php b/framework/main/classes/class_BaseFrameworkSystem.php index acde7b2e..194ee491 100644 --- a/framework/main/classes/class_BaseFrameworkSystem.php +++ b/framework/main/classes/class_BaseFrameworkSystem.php @@ -1026,7 +1026,7 @@ Loaded includes: * @return $isset Whether the given key is set * @throws InvalidArgumentException If a parameter is not valid */ - protected final function isGenericArrayElementSet (string $keyGroup, string $subGroup, $key, $element) { + protected final function isGenericArrayElementSet (string $keyGroup, string $subGroup, string $key, string $element) { // Check parameter if (empty($keyGroup)) { // Throw IAE @@ -1169,7 +1169,7 @@ Loaded includes: * @return void * @throws InvalidArgumentException If a parameter is not valid */ - protected final function unsetGenericArrayElement (string $keyGroup, string $subGroup, $key, $element) { + protected final function unsetGenericArrayElement (string $keyGroup, string $subGroup, string $key, string $element) { // Check parameter //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',element=' . $element); if (empty($keyGroup)) { @@ -1235,7 +1235,7 @@ Loaded includes: * @return void * @throws InvalidArgumentException If a parameter is not valid */ - protected final function appendStringToGenericArrayElement (string $keyGroup, string $subGroup, $key, $element, string $value, string $appendGlue = '') { + protected final function appendStringToGenericArrayElement (string $keyGroup, string $subGroup, string $key, string $element, string $value, string $appendGlue = '') { // Check parameter //* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',element=' . $element . ',value[' . gettype($value) . ']=' . print_r($value, true) . ',appendGlue=' . $appendGlue); if (empty($keyGroup)) { @@ -1335,7 +1335,7 @@ Loaded includes: * @throws InvalidArgumentException If a parameter is not valid * @throws BadMethodCallException If key/sub group isn't there but this method is invoked */ - protected final function initGenericArrayElement (string $keyGroup, string $subGroup, $key, $element, bool $forceInit = false) { + protected final function initGenericArrayElement (string $keyGroup, string $subGroup, string $key, string $element, bool $forceInit = false) { // Check parameter //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',element=' . $element . ',forceInit=' . intval($forceInit)); if (empty($keyGroup)) { @@ -1406,7 +1406,7 @@ Loaded includes: * @return $count Number of array elements * @throws InvalidArgumentException If a parameter is not valid */ - protected final function pushValueToGenericArrayElement (string $keyGroup, string $subGroup, $key, $element, $value) { + protected final function pushValueToGenericArrayElement (string $keyGroup, string $subGroup, string $key, string $element, $value) { // Check parameter //* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',element=' . $element . ',value[' . gettype($value) . ']=' . print_r($value, true)); if (empty($keyGroup)) { @@ -1700,7 +1700,7 @@ Loaded includes: * @return void * @throws InvalidArgumentException If a parameter is not valid */ - protected final function setGenericArrayElement (string $keyGroup, string $subGroup, $key, $element, $value) { + protected final function setGenericArrayElement (string $keyGroup, string $subGroup, string $key, string $element, $value) { // Check parameter //* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',element=' . $element . ',value[' . gettype($value) . ']=' . print_r($value, true)); if (empty($keyGroup)) { @@ -1735,7 +1735,7 @@ Loaded includes: * @throws InvalidArgumentException If a parameter is not valid * @throws BadMethodCallException If key/sub group isn't there but this method is invoked */ - protected final function getGenericArrayElement (string $keyGroup, string $subGroup, $key, $element) { + protected final function getGenericArrayElement (string $keyGroup, string $subGroup, string $key, string $element) { // Check parameter //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',element=' . $element); if (empty($keyGroup)) {