Skip to content

Commit 83f0504

Browse files
authored
Add PHP 8.3 to test matrix (#245)
* Add PHP 8.3 to test matrix * Update psalm for 8.3 to work * Update psalm suppressions * Fix php-cs-fixer issue
1 parent 53270f1 commit 83f0504

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"phpstan/phpstan": "^1.1",
2828
"phpstan/phpstan-phpunit": "^1.0",
2929
"phpunit/phpunit": "^9.5",
30-
"psalm/plugin-phpunit": "^0.16",
30+
"psalm/plugin-phpunit": "^0.18.4",
3131
"spatie/laravel-ignition": "*",
32-
"vimeo/psalm": "^4.0"
32+
"vimeo/psalm": "^5.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

src/HeadersPropagator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ public static function instance(): self
2020
return $instance ??= new self();
2121
}
2222

23-
/** @psalm-suppress InvalidReturnType */
23+
/** @psalm-suppress MoreSpecificReturnType */
2424
public function keys($carrier): array
2525
{
2626
assert($carrier instanceof Request);
2727

28-
/** @psalm-suppress InvalidReturnStatement */
28+
/** @psalm-suppress LessSpecificReturnStatement */
2929
return $carrier->headers->keys();
3030
}
3131

src/Watchers/QueryWatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function recordQuery(QueryExecuted $query): void
3636
if (! in_array($operationName, ['SELECT', 'INSERT', 'UPDATE', 'DELETE'])) {
3737
$operationName = null;
3838
}
39-
/** @psalm-suppress InvalidArgument */
39+
/** @psalm-suppress ArgumentTypeCoercion */
4040
$span = $this->instrumentation->tracer()->spanBuilder('sql ' . $operationName)
4141
->setSpanKind(SpanKind::KIND_CLIENT)
4242
->setStartTimestamp($this->calculateQueryStartTime($nowInNs, $query->time))

0 commit comments

Comments
 (0)