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:
There is no
Continue reading...
Code:
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
lineContinue reading...