Skip to content

Commit ab6baae

Browse files
committed
Update TopLevelDomais codebase
1 parent 88c1ba8 commit ab6baae

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
},
4848
"require-dev": {
4949
"friendsofphp/php-cs-fixer": "^v3.8.0",
50-
"guzzlehttp/guzzle": "^7.4.3",
51-
"guzzlehttp/psr7": "^1.6 || ^2.2.1",
52-
"phpstan/phpstan": "^1.7.3",
50+
"guzzlehttp/guzzle": "^7.5",
51+
"guzzlehttp/psr7": "^1.6 || ^2.4.1",
52+
"phpstan/phpstan": "^1.8.6",
5353
"phpstan/phpstan-phpunit": "^1.1.1",
54-
"phpstan/phpstan-strict-rules": "^1.2.3",
55-
"phpunit/phpunit": "^9.5.20",
56-
"psr/http-factory": "^1.0",
57-
"psr/simple-cache": "^1.0",
54+
"phpstan/phpstan-strict-rules": "^1.4.4",
55+
"phpunit/phpunit": "^9.5.25",
56+
"psr/http-factory": "^1.0.1",
57+
"psr/simple-cache": "^1.0.1",
5858
"symfony/cache": "^v5.0.0 || ^v6.0.0"
5959
},
6060
"suggest": {

src/TopLevelDomains.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public static function parse(string $content): array
7575
continue;
7676
}
7777

78-
if (false === strpos($line, '#')) {
79-
$data['records'] = $data['records'] ?? [];
78+
$data['records'] = $data['records'] ?? [];
79+
if (!str_contains($line, '#')) {
8080
$data['records'][self::extractRootZone($line)] = 1;
8181
continue;
8282
}

0 commit comments

Comments
 (0)