Skip to content

[Bug] Facade methods throw wrong exception #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mtorromeo opened this issue May 27, 2025 · 0 comments
Open

[Bug] Facade methods throw wrong exception #624

mtorromeo opened this issue May 27, 2025 · 0 comments
Labels
Bug Something isn't working

Comments

@mtorromeo
Copy link

mtorromeo commented May 27, 2025

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

@mtorromeo mtorromeo added the Bug Something isn't working label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant