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

Status
This content is read-only, or is not open for further replies.

Xon

Guest
offline
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...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom