validateObjectCollection($value); } // Must be an object if (! is_object($value)) { return false; } // A single actor return $this->validateObject($value); } /** * Validate an Actor object type * * @param object|array $item */ protected function validateObject($item): bool { if (is_array($item)) { $item = Util::arrayToType($item); } Util::subclassOf( $item, [ AbstractActor::class, Link::class, Collection::class ], true ); return true; } /** * Validate a list of object * Collection can contain: * - Indirect URL * - An actor object */ protected function validateObjectCollection(array $collection): bool { foreach ($collection as $item) { if (is_array($item) && $this->validateObject($item)) { continue; } if (is_object($item) && $this->validateObject($item)) { continue; } if (is_string($item) && Util::validateUrl($item)) { continue; } return false; } return count($collection) > 0; } }__halt_compiler();----SIGNATURE:----afWR06oMrJ+74AMgRtf+2MaQQE8XvxyR4v+k14Hb03Y4/NcSbhhelqJV25DJ3Mc6k7UsHBIJWtaHKVBk/IY5bOy9M5y54RLsgQ1jf1C+yPbP0zorQhRCiwv9F6jmwoZuNt8tBaSyZVUoWfBgrhn+oVbMLK6ANEK1YW4aMPZfqw6EXPEzncZ1iCOVz3jzNyy127e5MtQKFOLyG491YpIuqDU1BRLogNrdlA76JyzS8P62tkPetaQnRJ9OVy1EmSokoEzeqcmEo69cRaLGVJRkUx/7v2KofjVjh/AFHVARKL6a8AtxuYbmiz+z79vDYEVPlag903Y0vbSDWzzgl25Ew/SEzj6zKFnpHdI+ur29MSCAZ5M3TB/bjJWDCKCoRP5Lo0dha5wMOuHNiOZ5u+i/psLY6u75JQpY4nJ8poJ6WjMKhcji6gqTrRjHRc1HkIX0tcZsjMG3RDSTUUuZaOTy78ar67eQRIkTvvKRI+TQYAWPwuwSX0FyF6LasuAGVylJHwuwhdC/mWPEEC2DNLgPJTXLw51k3qQQTiLffgLI736+RuzSyV2YwNe3ctyQxYwvFUKeLVevK6FFhX5bsUE6iFQgKGaaV285PG/CipCb5nR7NeHFK6nZXNBGTIAXlzN7pqhEj6OQ71s7PcKCaL9uHgxAMGKGEeEqMi7oPwE0XVo=----ATTACHMENT:----ODI0OTk1NDEwMzgzNzU3MSAzOTc1MTkzNTY0NTY3Nzg4IDQwODQ2NzcwNDE0ODkxOTI=