fix: resolve RedisCache array offset error and improve discovery diagnostics

- Fix RedisCache driver to handle MGET failures gracefully with fallback
- Add comprehensive discovery context comparison debug tools
- Identify root cause: WEB context discovery missing 166 items vs CLI
- WEB context missing RequestFactory class entirely (52 vs 69 commands)
- Improved exception handling with detailed binding diagnostics
This commit is contained in:
2025-09-12 20:05:18 +02:00
parent 8040d3e7a5
commit e30753ba0e
46990 changed files with 10789682 additions and 89639 deletions

View File

@@ -95,6 +95,16 @@ final class ValidationException extends FrameworkException
return $this->validationResult->getFieldErrors($field);
}
/**
* Gives all error messages as array (alias for getAllErrors)
*
* @return array<string, string[]> All error messages grouped by field
*/
public function getErrors(): array
{
return $this->getAllErrors();
}
/**
* Gibt alle Fehlermeldungen als Array zurück
*
@@ -123,6 +133,18 @@ final class ValidationException extends FrameworkException
return ! empty($this->validationResult->getFieldErrors($field));
}
/**
* Get the invalid value for the primary field
*
* @return mixed The invalid value that caused validation to fail
*/
public function getInvalidValue(): mixed
{
// Return the field name as the "invalid value" since we don't store the original value
// In future implementations this could be enhanced to store the actual invalid value
return $this->field;
}
/**
* Bestimmt den passenden ErrorCode basierend auf den Validation Errors
*/