? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
4 Apr 2021

Code review.

The subject of the sprintf only has 1 placeholder but yet we are providing 3 variables to it.

$err and $errno are also not defined before being used here

Psalm static analysis also highlights this as an issue.

ERROR: UndefinedVariable - libraries/src/Http/Transport/StreamTransport.php:166:72 - Cannot find referenced variable $err (see https://psalm.dev/024)
				$php_errormsg = sprintf('Could not connect to resource: %s', $uri, $err, $errno);


ERROR: UndefinedVariable - libraries/src/Http/Transport/StreamTransport.php:166:78 - Cannot find referenced variable $errno (see https://psalm.dev/024)
				$php_errormsg = sprintf('Could not connect to resource: %s', $uri, $err, $errno);
avatar PhilETaylor PhilETaylor - open - 4 Apr 2021
avatar PhilETaylor PhilETaylor - change - 4 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2021
Category Libraries
avatar HLeithner HLeithner - change - 5 Apr 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-04-05 12:10:44
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 5 Apr 2021
avatar HLeithner HLeithner - merge - 5 Apr 2021

Add a Comment

Login with GitHub to post a comment