aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Net
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Net')
-rw-r--r--tests/lib/Net/HostnameClassifierTest.php4
-rw-r--r--tests/lib/Net/IpAddressClassifierTest.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Net/HostnameClassifierTest.php b/tests/lib/Net/HostnameClassifierTest.php
index 766246ed8ad..5d80da01e46 100644
--- a/tests/lib/Net/HostnameClassifierTest.php
+++ b/tests/lib/Net/HostnameClassifierTest.php
@@ -21,7 +21,7 @@ class HostnameClassifierTest extends TestCase {
$this->classifier = new HostnameClassifier();
}
- public function localHostnamesData():array {
+ public static function localHostnamesData(): array {
return [
['localhost'],
['localHost'],
@@ -41,7 +41,7 @@ class HostnameClassifierTest extends TestCase {
self::assertTrue($isLocal);
}
- public function publicHostnamesData(): array {
+ public static function publicHostnamesData(): array {
return [
['example.com'],
['example.net'],
diff --git a/tests/lib/Net/IpAddressClassifierTest.php b/tests/lib/Net/IpAddressClassifierTest.php
index 803be00f740..be0b7e52fe0 100644
--- a/tests/lib/Net/IpAddressClassifierTest.php
+++ b/tests/lib/Net/IpAddressClassifierTest.php
@@ -21,7 +21,7 @@ class IpAddressClassifierTest extends TestCase {
$this->classifier = new IpAddressClassifier();
}
- public function publicIpAddressData(): array {
+ public static function publicIpAddressData(): array {
return [
['8.8.8.8'],
['8.8.4.4'],
@@ -39,7 +39,7 @@ class IpAddressClassifierTest extends TestCase {
self::assertFalse($isLocal);
}
- public function localIpAddressData(): array {
+ public static function localIpAddressData(): array {
return [
['192.168.0.1'],
['fe80::200:5aee:feaa:20a2'],