From cdaec140780a9cf2128279d8d008b360a832ff7f Mon Sep 17 00:00:00 2001 From: JackieDo Date: Thu, 17 Mar 2022 13:08:10 +0700 Subject: [PATCH] Fix bugs - Fix bugs for PHP 5.x --- .php-cs-fixer.dist.php | 6 ++++++ src/Timezonelist.php | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index db2a02c..f565b5f 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -56,6 +56,12 @@ ], 'phpdoc_no_empty_return' => false, 'phpdoc_no_package' => false, + 'visibility_required' => [ + 'elements' => [ + 'property', + 'method', + ], + ], ]; $config = new Config; diff --git a/src/Timezonelist.php b/src/Timezonelist.php index f1d5bef..8995096 100644 --- a/src/Timezonelist.php +++ b/src/Timezonelist.php @@ -17,9 +17,9 @@ class Timezonelist /** * HTML entities. */ - public const MINUS = '−'; - public const PLUS = '+'; - public const WHITESPACE = ' '; + const MINUS = '−'; + const PLUS = '+'; + const WHITESPACE = ' '; /** * General timezones.