[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
Labels |
Added:
?
|
it is not there
I see this code there
public function request($method, UriInterface $uri, $data = null, array $headers = [], $timeout = null, $userAgent = null);
Ah, then it marks probably the difference. Since one defaults to array and the other to NULL
Build | staging | ⇒ | 4.0-dev |
Category | ⇒ | Code style |
Status | New | ⇒ | Discussion |
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.
Looks like I do not get the issue anymore.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-19 10:13:03 |
Closed_By | ⇒ | infograf768 |
Is that question mark before
array
really there? Looks wrong to me.