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

PHP:

Код:
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

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ