From 01bcbafe3079d354c85a8b2d2d2e11874c36ed3a Mon Sep 17 00:00:00 2001 From: Sun HaiXin Date: Wed, 18 Aug 2021 17:11:14 +0800 Subject: [PATCH] constant of declared with access modifier As of PHP 7.1.0, class constants may be defined as public, private, or protected. Constants declared without any explicit visibility keyword are defined as public. --- src/Support/Classify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Classify.php b/src/Support/Classify.php index 1533d6ba..c530c136 100644 --- a/src/Support/Classify.php +++ b/src/Support/Classify.php @@ -35,7 +35,7 @@ public function constant($name, $value) { $value = Dumper::export($value); - return "\tconst $name = $value;\n"; + return "\tconst public $name = $value;\n"; } /**