Skip to content

Commit 8a520fd

Browse files
sj-iguilliamxavier
andauthored
Update Zend/tests/traits/constant_001.phpt
fix wrong visibilities in the test cases for trait constants Co-authored-by: Guilliam Xavier <guilliamxavier@users.noreply.github.com>
1 parent e489fd8 commit 8a520fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/tests/traits/constant_001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Trying to access a constant on Trait via a Class
55

66
trait Foo {
77
public const PUBLIC = 'public';
8-
public const PROTECTED = 'protected';
9-
public const PRIVATE = 'private';
8+
protected const PROTECTED = 'protected';
9+
private const PRIVATE = 'private';
1010

1111
public function f1(): void {
1212
echo self::PUBLIC, ' via self', PHP_EOL;

0 commit comments

Comments
 (0)