-
Статья
XFRM\Service\ResourceItem\Icon::setImageFromExisting does not fail as expected if the icon is missing
- Автор xenforo2
- RSS Feed XenForo
- 0 Ответы
PHP:
There is no
Читать далее...
Код:
public function setImageFromExisting(): bool
{
$path = $this->resource->getAbstractedIconPath();
if (!$this->app->fs()->has($path))
{
new \InvalidArgumentException(
"Resource does not have an icon ({$path})"
);
}
throw
on that new \InvalidArgumentException
lineЧитать далее...