You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, this happens mainly for BC reasons while using deprecated methods. If you could tell us how us are using the library I maybe can show you an alternative.
Update: Sorry, I just saw to snippet. The most API classes are returning string|bool on error for BC reasons. This cannot be changed atm without a breaking change and is planned for v3. However I'm planning to implement this as a forward compatible feature by introducing something like a global PHP_REDMINE_API_THROW_EXCEPTIONS = true; constant.
Instead of (re-)throwing a new / the existing exception of JsonSerializer there is a string returned (not everywhere but in some methods):
That's a bit tricky as we cannot catch the error and handle it.
So we've also to check the return of a call (i. e.
getApi('issue')->show(...)
).The text was updated successfully, but these errors were encountered: