?
avatar infograf768
infograf768
11 Jan 2018

[09-Jan-2018 12:17:34 Europe/Berlin] PHP Fatal error: Declaration of Joomla\CMS\Http\Transport\CurlTransport::request($method, Joomla\Uri\UriInterface $uri, $data = NULL, array $headers = Array, $timeout = NULL, $userAgent = NULL) must be compatible with Joomla\Http\TransportInterface::request($method, Joomla\Uri\UriInterface $uri, $data = NULL, ?array $headers = NULL, $timeout = NULL, $userAgent = NULL) in /Applications/MAMP/htdocs/installmulti/joomla40/libraries/src/Http/Transport/CurlTransport.php on line 26

avatar infograf768 infograf768 - open - 11 Jan 2018
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jan 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Jan 2018
avatar Bakual
Bakual - comment - 11 Jan 2018

?array $headers = NULL,

Is that question mark before array really there? Looks wrong to me.

avatar infograf768
infograf768 - comment - 11 Jan 2018

it is not there
I see this code there
public function request($method, UriInterface $uri, $data = null, array $headers = [], $timeout = null, $userAgent = null);

avatar Bakual
Bakual - comment - 11 Jan 2018

Ah, then it marks probably the difference. Since one defaults to array and the other to NULL

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jan 2018
Build staging 4.0-dev
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jan 2018
Category Code style
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jan 2018
Status New Discussion
avatar mbabker
mbabker - comment - 21 Jan 2018

There has to be a PHP problem somewhere or outdated code in your clone, or something is overloading the core class. All of the request method signatures in https://github.com/joomla/joomla-cms/tree/4.0-dev/libraries/src/Http/Transport match what is defined in https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/vendor/joomla/http/src/TransportInterface.php.

avatar infograf768
infograf768 - comment - 19 Feb 2018

Looks like I do not get the issue anymore.

avatar infograf768 infograf768 - change - 19 Feb 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-02-19 10:13:03
Closed_By infograf768
avatar infograf768 infograf768 - close - 19 Feb 2018

Add a Comment

Login with GitHub to post a comment