update kirby to v5 and add refresh cache panel view button

This commit is contained in:
isUnknown 2025-09-10 14:28:38 +02:00
commit 9a86d41254
466 changed files with 19960 additions and 10497 deletions

View file

@ -41,10 +41,10 @@ class Expression
// into actual types and treats all other parts as their own queries
$parts = A::map(
$parts,
fn ($part) =>
in_array($part, ['?', ':', '?:', '??'])
? $part
: Argument::factory($part)
fn ($part) => match ($part) {
'?', ':', '?:', '??' => $part,
default => Argument::factory($part)
}
);
return new static(parts: $parts);
@ -53,7 +53,7 @@ class Expression
/**
* Splits a comparison string into an array
* of expressions and operators
* @internal
* @unstable
*/
public static function parse(string $string): array
{
@ -101,7 +101,9 @@ class Expression
// if `a` isn't false, return `b`, otherwise `c`
if ($part === '?') {
if (($this->parts[$index + 2] ?? null) !== ':') {
throw new LogicException('Query: Incomplete ternary operator (missing matching `? :`)');
throw new LogicException(
message: 'Query: Incomplete ternary operator (missing matching `? :`)'
);
}
if ($base != false) {