RSS Feed/News XFRM\Service\ResourceItem\Icon::setImageFromExisting does not fail as expected if the icon is missing

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,817
Points
823

Reputation:

PHP:

Code:
public function setImageFromExisting(): bool
{
    $path = $this->resource->getAbstractedIconPath();
    if (!$this->app->fs()->has($path))
    {
        new \InvalidArgumentException(
            "Resource does not have an icon ({$path})"
        );
    }
There is no throw on that new \InvalidArgumentException line

Continue reading...
 
Status
Not open for further replies.
Top