Updates to vendors etc

This commit is contained in:
Chris Hunt
2025-07-11 15:57:48 +01:00
parent d972cbcd0a
commit 8fb6438254
8043 changed files with 248005 additions and 189479 deletions

View File

@@ -14,18 +14,20 @@ namespace Symfony\Component\HttpKernel\Attribute;
use Psr\Log\LogLevel;
/**
* Defines the log level applied to an exception.
*
* @author Dejan Angelov <angelovdejan@protonmail.com>
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
final class WithLogLevel
{
/**
* @param LogLevel::* $level
* @param LogLevel::* $level The level to use to log the exception
*/
public function __construct(public readonly string $level)
{
if (!\defined('Psr\Log\LogLevel::'.strtoupper($this->level))) {
throw new \InvalidArgumentException(sprintf('Invalid log level "%s".', $this->level));
throw new \InvalidArgumentException(\sprintf('Invalid log level "%s".', $this->level));
}
}
}