Browse Source
PHP8.4 deprecation fix for HTTP::__construct
pull/3/head
Kristof De Jaeger
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/p3k/HTTP.php
|
|
|
@ -9,7 +9,7 @@ class HTTP { |
|
|
|
private $_transport; |
|
|
|
private $_user_agent; |
|
|
|
|
|
|
|
public function __construct($user_agent=null, HTTP\Transport $transport=null) { |
|
|
|
public function __construct(?$user_agent=null, ?HTTP\Transport $transport=null) { |
|
|
|
if($user_agent) { |
|
|
|
$this->_user_agent = $user_agent; |
|
|
|
} |
|
|
|
|