Skip to content

Commit b18e693

Browse files
committed
constant visiblity
1 parent 6f18eb4 commit b18e693

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ final class ClassType
2424
use Nette\SmartObject;
2525
use Traits\CommentAware;
2626

27-
const TYPE_CLASS = 'class';
28-
const TYPE_INTERFACE = 'interface';
29-
const TYPE_TRAIT = 'trait';
27+
public const
28+
TYPE_CLASS = 'class',
29+
TYPE_INTERFACE = 'interface',
30+
TYPE_TRAIT = 'trait';
3031

3132
/** @var PhpNamespace|null */
3233
private $namespace;

src/PhpGenerator/Helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ final class Helpers
1919
{
2020
use Nette\StaticClass;
2121

22-
const PHP_IDENT = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*';
23-
const MAX_DEPTH = 50;
24-
const WRAP_LENGTH = 70;
22+
public const PHP_IDENT = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*';
23+
private const MAX_DEPTH = 50;
24+
private const WRAP_LENGTH = 70;
2525

2626

2727
/**

0 commit comments

Comments
 (0)