mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
1a966741f4
Move type check before assignment to prevent TypeError when non-string value (like array) is passed to Origin::isValid(). The property \$this->origin is typed as string, so assigning an array before the is_string() check caused the error.