-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
BugSomething isn't workingSomething isn't working
Description
Describe the bug
When calling Facade methods from the wrong context a RuntimeException
is thrown but the phpdoc @throws
tag documents that the Temporal\Exception\OutOfContextException
exception should be thrown instead.
From a superficial search, it seems like the OutOfContextException
is never used in the codebase.
Minimal Reproduction
❯ php -a
Interactive shell
php > require_once 'vendor/autoload.php';
php > \Temporal\Activity::getInfo();
PHP Warning: Uncaught RuntimeException: Calling facade methods can only be made from the currently running process in ...
Environment/Versions
temporal/sdk v2.14.1
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working