Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d35720

Browse files
committed
[HttpKernel] Update phpdoc
1 parent 4be96f9 commit 4d35720

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/HttpKernel/Attribute/LogLevel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
#[\Attribute(\Attribute::TARGET_CLASS)]
1818
final class LogLevel
1919
{
20+
/**
21+
* @param \Psr\Log\LogLevel::* $level
22+
*/
2023
public function __construct(public readonly string $level)
2124
{
22-
if (!\defined(sprintf("\Psr\Log\LogLevel::%s", strtoupper($this->level)))) {
25+
if (!\defined('Psr\Log\LogLevel::'.strtoupper($this->level))) {
2326
throw new \InvalidArgumentException(sprintf('Invalid log level - "%s".', $this->level));
2427
}
2528
}

0 commit comments

Comments
 (0)