Skip to content

Commit 249c361

Browse files
committed
chore: bumps dependencies
1 parent 9c5b51e commit 249c361

File tree

17 files changed

+21
-30
lines changed

17 files changed

+21
-30
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "MIT",
1414
"require": {
1515
"php": "^8.2",
16-
"pestphp/pest": "^3.7.1",
16+
"pestphp/pest": "^3.8.3",
1717
"pestphp/pest-plugin": "^3.0.0",
1818
"ext-curl": "*",
1919
"ext-zip": "*"
@@ -27,7 +27,7 @@
2727
]
2828
},
2929
"require-dev": {
30-
"pestphp/pest-dev-tools": "^2.17"
30+
"pestphp/pest-dev-tools": "^3.4"
3131
},
3232
"minimum-stability": "dev",
3333
"prefer-stable": true,

phpstan.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
includes:
2-
- vendor/phpstan/phpstan-strict-rules/rules.neon
3-
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
4-
51
parameters:
62
level: max
73
paths:
84
- src
9-
10-
checkMissingIterableValueType: true
11-
checkGenericClassInNonGenericObjectType: false
12-
reportUnmatchedIgnoredErrors: true
13-
ignoreErrors:
14-
- "#Short ternary operator is not allowed#"

src/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@ public function __call(string $name, array $arguments): mixed
284284
$this->run();
285285
}
286286

287-
return $this->result->{$name}(...$arguments); // @phpstan-ignore-line
287+
return $this->result->{$name}(...$arguments);
288288
}
289289

290290
/**
291291
* Forwards property access to the run result.
292292
*/
293293
public function __get(string $name): mixed
294294
{
295-
return $this->{$name}(); // @phpstan-ignore-line
295+
return $this->{$name}();
296296
}
297297
}

src/Printers/Detail.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function print(Result $result): void
3333
$domain = $result->url();
3434
$domain = (string) parse_url($domain, PHP_URL_HOST);
3535
$dnsRecords = dns_get_record($domain, DNS_AAAA + DNS_A);
36+
// @phpstan-ignore-next-line
3637
$dnsRecords = array_map(fn (array $record): string => $record['ipv6'] ?? $record['ip'], $dnsRecords ?: []);
3738
$dnsRecords = array_unique($dnsRecords);
3839

src/Printers/Progress.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ private function fetch(Process $tail, array &$points, string &$buffer, string &$
121121
/**
122122
* Prints the current points.
123123
*
124-
* @param array<array{data: array{time: string, value: float}}> $points
124+
* @param array<int, array{data: array{time: string, value: float}}> $points
125125
*/
126126
private function printCurrentPoints(array $points): void
127127
{
128128
static $maxResponseTime;
129129

130130
if ($points !== []) {
131-
$values = array_map(fn ($point): float => $point['data']['value'], $points);
131+
$values = array_map(fn (array $point): float => $point['data']['value'], $points);
132132
$median = $this->median($values);
133133

134134
$time = substr($points[count($points) - 1]['data']['time'], 11, 8);
@@ -140,6 +140,7 @@ private function printCurrentPoints(array $points): void
140140
$maxResponseTime = max($median * 3, 1000);
141141
}
142142

143+
// @phpstan-ignore-next-line
143144
$greenDots = (int) (($median * $width) / $maxResponseTime);
144145

145146
$greenDots = min($greenDots, min(150, terminal()->width()) - 23);

src/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function testRun(): TestRun
252252
*/
253253
public function __get(string $name): mixed
254254
{
255-
return $this->{$name}(); // @phpstan-ignore-line
255+
return $this->{$name}();
256256
}
257257

258258
/**

src/Result/DnsLookup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public function duration(): Duration
3434
*/
3535
public function __get(string $name): mixed
3636
{
37-
return $this->{$name}(); // @phpstan-ignore-line
37+
return $this->{$name}();
3838
}
3939
}

src/Result/Download.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function duration(): Duration
4343
*/
4444
public function __get(string $name): mixed
4545
{
46-
return $this->{$name}(); // @phpstan-ignore-line
46+
return $this->{$name}();
4747
}
4848
}

src/Result/Duration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ public function p95(): float
7979
*/
8080
public function __get(string $name): mixed
8181
{
82-
return $this->{$name}(); // @phpstan-ignore-line
82+
return $this->{$name}();
8383
}
8484
}

src/Result/Rate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function count(): int
4545
*/
4646
public function __get(string $name): mixed
4747
{
48-
return $this->{$name}(); // @phpstan-ignore-line
48+
return $this->{$name}();
4949
}
5050
}

0 commit comments

Comments
 (0)