User tests: Successful: Unsuccessful:
Code review
When $data
is passed into this method it has type object
according to the docblock for this method.
There is already a case on line 447 where the object is cast to string
$source->url
has a docblock type (in DownloadSource.php) of string.
Therefore assign an object to an object property of type string is incorrect and we first need to cast to a string before assigning.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-07 10:54:25 |
Closed_By | ⇒ | PhilETaylor | |
Labels |
Added:
?
|
In fact this might not be right and needs further investigation of exactly what
$data
type and contains as Psalm is now contradicting the other cast saying an object cannot be cast to string!