Browse Source

PHP8.4 deprecation fix for HTTP::__construct

pull/3/head
Kristof De Jaeger 2 weeks ago
committed by GitHub
parent
commit
4ce31fe7a2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/p3k/HTTP.php

+ 1
- 1
src/p3k/HTTP.php View File

@ -9,7 +9,7 @@ class HTTP {
private $_transport; private $_transport;
private $_user_agent; 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) { if($user_agent) {
$this->_user_agent = $user_agent; $this->_user_agent = $user_agent;
} }

Loading…
Cancel
Save