Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2020-07-07 17:31:33 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2020-07-07 17:31:33 +0300
commit47f0960dce6a2a07428f7e600a4a9815abe8a537 (patch)
treecabadf19c73933c719204fd9909ccbe411ce8043 /test/classes/IpAllowDenyTest.php
parente81146e4b38bc6f8ce9163c399b31bcc0e280d6e (diff)
Add return type declaration to test methods
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test/classes/IpAllowDenyTest.php')
-rw-r--r--test/classes/IpAllowDenyTest.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/classes/IpAllowDenyTest.php b/test/classes/IpAllowDenyTest.php
index 476e478e61..c63df01f01 100644
--- a/test/classes/IpAllowDenyTest.php
+++ b/test/classes/IpAllowDenyTest.php
@@ -87,7 +87,7 @@ class IpAllowDenyTest extends AbstractTestCase
*
* @return array
*/
- public function proxyIPs()
+ public function proxyIPs(): array
{
return [
// Nothing set
@@ -132,10 +132,8 @@ class IpAllowDenyTest extends AbstractTestCase
/**
* Test for ipMaskTest
- *
- * @return void
*/
- public function testIpMaskTest()
+ public function testIpMaskTest(): void
{
//IPV4 testing
$testRange = '255.255.0.0/8';
@@ -200,10 +198,8 @@ class IpAllowDenyTest extends AbstractTestCase
/**
* Test for allowDeny
- *
- * @return void
*/
- public function testAllowDeny()
+ public function testAllowDeny(): void
{
$_SERVER['REMOTE_ADDR'] = '';
$this->assertFalse(