Skip to content

Commit

Permalink
Merge pull request #43 from peter279k/ternary_to_null
Browse files Browse the repository at this point in the history
Apply the ternary to null operator
  • Loading branch information
j0k3r committed Oct 6, 2023
2 parents 14b7ca0 + 8a904a3 commit 9644a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/HttpClient/HttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,6 @@ class TestHttpClient extends HttpClient
*/
public function getOption(string $name, string $default = null)
{
return isset($this->options[$name]) ? $this->options[$name] : $default;
return $this->options[$name] ?? $default;
}
}

0 comments on commit 9644a65

Please sign in to comment.