Skip to content

Commit 81b2379

Browse files
authored
Merge pull request #4 from mambax7/feature/update_composer
composer updates
2 parents c695cd6 + eb776e8 commit 81b2379

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
],
1919
"require": {
2020
"php": ">=7.4.0",
21-
"symfony/polyfill-mbstring": "^1.31.0"
21+
"symfony/polyfill-mbstring": "^1.33.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "^9.6|^11.2.2"
24+
"phpunit/phpunit": "^9.6|^11.5",
25+
"roave/security-advisories": "dev-latest",
26+
"phpstan/phpstan": "^2.1",
27+
"squizlabs/php_codesniffer": "^3.13"
2528
},
2629
"autoload": {
2730
"psr-4": {

phpstan.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
includes:
2+
# - ../../phpstan.neon
3+
parameters:
4+
level: max
5+
paths:
6+
- .
7+
fileExtensions:
8+
- php
9+
- phtml
10+
excludePaths:
11+
- tests/*

src/PublicSuffixList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function getTree(): array
173173
private function readPSL()
174174
{
175175
$parts = \parse_url($this->url);
176-
$remote = isset($parts['scheme']) || isset($parts['host']);
176+
$remote = \is_array($parts) && !empty($parts) && (isset($parts['scheme']) || isset($parts['host']));
177177
// try to read with file_get_contents
178178
$newPSL = \file_get_contents(($remote ? '' : __DIR__) . $this->url);
179179
if (false !== $newPSL) {

0 commit comments

Comments
 (0)