Skip to content

Commit ebef64b

Browse files
author
Kirill Nesmeyanov
committed
Improve codes
1 parent d984c9f commit ebef64b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Exception/NonPrintableNodeException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
class NonPrintableNodeException extends \InvalidArgumentException implements PrinterExceptionInterface
1010
{
11-
final public const CODE_INVALID_NODE = 0x01;
11+
final public const ERROR_CODE_INVALID_NODE = 0x01;
1212

13-
public const CODE_LAST = self::CODE_INVALID_NODE;
13+
protected const CODE_LAST = self::ERROR_CODE_INVALID_NODE;
1414

1515
final public function __construct(string $message, int $code = 0, ?\Throwable $previous = null)
1616
{
@@ -21,6 +21,6 @@ public static function fromInvalidNode(Node $node): self
2121
{
2222
$message = \sprintf('Could not print unknown node "%s"', $node::class);
2323

24-
return new static($message, self::CODE_INVALID_NODE);
24+
return new static($message, self::ERROR_CODE_INVALID_NODE);
2525
}
2626
}

0 commit comments

Comments
 (0)