mirror of
https://github.com/Chouchen/ShikiryuRSS.git
synced 2026-10-07 02:01:18 +02:00
🚧 Add some validations and corrections
This commit is contained in:
1 parent
5de5993e2b
commit
f1816dec0c
10 files changed
+48
-26
No files matched your search
@@ -38,7 +38,11 @@ class Image extends HasValidator implements SRSSElement
|
||||
|
||||
public function isValid(): bool
|
||||
{
|
||||
return (new Validator())->isObjectValid($this);
|
||||
try {
|
||||
return (new Validator())->isObjectValid($this);
|
||||
} catch (\ReflectionException $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
|
||||
Reference in new issue
Block a user