1515
1616class ext extends \phpbb \extension \base
1717{
18- /** @var string The default value for PHP to use in skeletons */
19- const DEFAULT_PHP = '7.1.3 ' ;
20- /** @var string The default value for minimum phpBB to use in skeletons */
21- const DEFAULT_PHPBB_MIN = '3.3.0 ' ;
22- /** @var string The default value for maximum phpBB to use in skeletons */
23- const DEFAULT_PHPBB_MAX = '4.0.0@dev ' ;
18+ public const DEFAULT_SKELETON_PHP = '7.1.3 ' ;
19+ public const DEFAULT_SKELETON_PHPBB_MIN = '3.3.0 ' ;
20+ public const DEFAULT_SKELETON_PHPBB_MAX = '4.0.0@dev ' ;
2421
25- /** @var string The minimum version of phpBB this skeleton extension supports */
26- const REQUIRE_PHPBB_MIN = '3.3.0 ' ;
27- /** @var string The maximum version of phpBB this skeleton extension supports */
28- const REQUIRE_PHPBB_MAX = '4.0.0-dev ' ;
29- /** @var string The minimum version of PHP this skeleton extension supports */
30- const REQUIRE_PHP = 70100 ;
22+ public const MIN_PHPBB_ALLOWED = '3.3.0 ' ;
23+ public const MAX_PHPBB_ALLOWED = '4.0.0-dev ' ;
24+ public const MIN_PHP_ALLOWED = 70100 ;
3125
3226 /**
3327 * @var array An array of installation error messages
@@ -57,11 +51,11 @@ public function is_enableable()
5751 */
5852 protected function phpbb_requirement ($ phpBB_version = PHPBB_VERSION )
5953 {
60- if (phpbb_version_compare ($ phpBB_version , self ::REQUIRE_PHPBB_MIN , '< ' ))
54+ if (phpbb_version_compare ($ phpBB_version , self ::MIN_PHPBB_ALLOWED , '< ' ))
6155 {
6256 $ this ->errors [] = 'PHPBB_VERSION_MIN_ERROR ' ;
6357 }
64- else if (phpbb_version_compare ($ phpBB_version , self ::REQUIRE_PHPBB_MAX , '>= ' ))
58+ else if (phpbb_version_compare ($ phpBB_version , self ::MAX_PHPBB_ALLOWED , '>= ' ))
6559 {
6660 $ this ->errors [] = 'PHPBB_VERSION_MAX_ERROR ' ;
6761 }
@@ -75,7 +69,7 @@ protected function phpbb_requirement($phpBB_version = PHPBB_VERSION)
7569 */
7670 protected function php_requirement ($ php_version = PHP_VERSION_ID )
7771 {
78- if ($ php_version < self ::REQUIRE_PHP )
72+ if ($ php_version < self ::MIN_PHP_ALLOWED )
7973 {
8074 $ this ->errors [] = 'PHP_VERSION_ERROR ' ;
8175 }
0 commit comments