Skip to content

Commit e129b31

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent 591b7d7 commit e129b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Transport/Dsn.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public function getPort(int $default = null): ?int
7979
return $this->port ?? $default;
8080
}
8181

82-
public function getOption(string $key, mixed $default = null)
82+
public function getOption(string $key, mixed $default = null): mixed
8383
{
8484
return $this->options[$key] ?? $default;
8585
}
8686

87-
public function getRequiredOption(string $key)
87+
public function getRequiredOption(string $key): mixed
8888
{
8989
if (!\array_key_exists($key, $this->options) || '' === trim($this->options[$key])) {
9090
throw new MissingRequiredOptionException($key);

0 commit comments

Comments
 (0)