mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16549] Add void return type of template methods
PHPBB3-16549
This commit is contained in:
parent
d7cb104fc1
commit
3d87d61dae
17 changed files with 25 additions and 25 deletions
2
tests/cache/apcu_driver_test.php
vendored
2
tests/cache/apcu_driver_test.php
vendored
|
@ -24,7 +24,7 @@ class phpbb_cache_apcu_driver_test extends phpbb_cache_common_test_case
|
||||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
if (!extension_loaded('apcu'))
|
if (!extension_loaded('apcu'))
|
||||||
{
|
{
|
||||||
|
|
2
tests/cache/memcached_test.php
vendored
2
tests/cache/memcached_test.php
vendored
|
@ -22,7 +22,7 @@ class phpbb_cache_memcached_driver_test extends \phpbb_cache_common_test_case
|
||||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
if (!extension_loaded('memcached'))
|
if (!extension_loaded('memcached'))
|
||||||
{
|
{
|
||||||
|
|
2
tests/cache/redis_driver_test.php
vendored
2
tests/cache/redis_driver_test.php
vendored
|
@ -22,7 +22,7 @@ class phpbb_cache_redis_driver_test extends \phpbb_cache_common_test_case
|
||||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
if (!extension_loaded('redis'))
|
if (!extension_loaded('redis'))
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@ class phpbb_extension_extension_base_test extends phpbb_test_case
|
||||||
/** @var phpbb_mock_extension_manager */
|
/** @var phpbb_mock_extension_manager */
|
||||||
protected $extension_manager;
|
protected $extension_manager;
|
||||||
|
|
||||||
public static function setUpBeforeClass()
|
public static function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class phpbb_filesystem_realpath_test extends phpbb_test_case
|
||||||
/** @var \phpbb\filesystem\filesystem_interface */
|
/** @var \phpbb\filesystem\filesystem_interface */
|
||||||
protected $filesystem;
|
protected $filesystem;
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
|
||||||
'./',
|
'./',
|
||||||
);
|
);
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
|
||||||
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/../extension/ext/', self::$fixtures);
|
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/../extension/ext/', self::$fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
||||||
'foo/foo/controller/',
|
'foo/foo/controller/',
|
||||||
);
|
);
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
||||||
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class phpbb_functional_extension_global_lang_test extends phpbb_functional_test_
|
||||||
'foo/bar/language/en/',
|
'foo/bar/language/en/',
|
||||||
);
|
);
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class phpbb_functional_extension_global_lang_test extends phpbb_functional_test_
|
||||||
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case
|
||||||
'./',
|
'./',
|
||||||
);
|
);
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case
|
||||||
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class phpbb_functional_extension_permission_lang_test extends phpbb_functional_t
|
||||||
'foo/bar/language/en/',
|
'foo/bar/language/en/',
|
||||||
);
|
);
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class phpbb_functional_extension_permission_lang_test extends phpbb_functional_t
|
||||||
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
|
||||||
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class phpbb_lint_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
static protected $php_binary;
|
static protected $php_binary;
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
// Try to use PHP_BINARY constant if available so lint tests are run
|
// Try to use PHP_BINARY constant if available so lint tests are run
|
||||||
// using the same php binary as phpunit. If not available (pre PHP
|
// using the same php binary as phpunit. If not available (pre PHP
|
||||||
|
|
|
@ -20,7 +20,7 @@ class phpbb_network_ftp_fsock_pasv_epsv_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
static protected $ipv4;
|
static protected $ipv4;
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
$hostname = 'ftp.debian.org.';
|
$hostname = 'ftp.debian.org.';
|
||||||
self::$ipv4 = gethostbyname($hostname);
|
self::$ipv4 = gethostbyname($hostname);
|
||||||
|
|
|
@ -25,7 +25,7 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||||
|
|
||||||
static protected $language_reflection_lang;
|
static protected $language_reflection_lang;
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ abstract class phpbb_database_test_case extends TestCase
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ abstract class phpbb_database_test_case extends TestCase
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function tearDownAfterClass()
|
static public function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
if (file_exists(self::$install_schema_file))
|
if (file_exists(self::$install_schema_file))
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,7 +42,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
static protected $already_installed = false;
|
static protected $already_installed = false;
|
||||||
static protected $last_post_timestamp = 0;
|
static protected $last_post_timestamp = 0;
|
||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ require_once __DIR__ . '/../../phpBB/includes/message_parser.php';
|
||||||
|
|
||||||
class phpbb_text_processing_message_parser_test extends phpbb_test_case
|
class phpbb_text_processing_message_parser_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
public static function setUpBeforeClass()
|
public static function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class phpbb_text_processing_message_parser_test extends phpbb_test_case
|
||||||
stream_wrapper_register('http', __CLASS__ . '_proxy');
|
stream_wrapper_register('http', __CLASS__ . '_proxy');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function tearDownAfterClass()
|
public static function tearDownAfterClass(): void
|
||||||
{
|
{
|
||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
stream_wrapper_restore('http');
|
stream_wrapper_restore('http');
|
||||||
|
|
Loading…
Add table
Reference in a new issue