modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2025-03-20 08:06:31 +04:00
parent df9bc0d971
commit c3357de203

View File

@ -15,9 +15,9 @@ class StateException extends LogicException {
return new static($prefix.$message);
}
static final function unexpected_state(?string $prefix=null): self {
static final function unexpected_state(?string $suffix=null): self {
$message = "unexpected state";
if ($prefix) $prefix = "$prefix: ";
return new static($prefix.$message);
if ($suffix) $suffix = ": $suffix";
return new static($message.$suffix);
}
}