fix: correct exception handling in PHP wrapper (#3901)

The `catch` is hinting on `\Exception` [1] which has not `getName`-method.
To identify the type of exception, `get_class` can be used.

[1] https://www.php.net/manual/de/class.exception.php

Co-authored-by: HugoCasa <hugo@casademont.ch>
This commit is contained in:
Richard Klees
2024-06-13 08:13:32 +02:00
committed by GitHub
parent 949b9b4787
commit 320ba754a4
+1 -1
View File
@@ -229,7 +229,7 @@ try {{
}} catch (Exception $e) {{
$err = [
"message" => $e->getMessage(),
"name" => $e->getName(),
"name" => get_class($e),
"stack" => $e->getTraceAsString()
];
$step_id = getenv('WM_FLOW_STEP_ID');