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 there! I was working on a codebase this morning, and noticed that Sentry does not really document the various keys that could be passed to functions like Sentry\init().
Problem Statement
Hey there! I was working on a codebase this morning, and noticed that Sentry does not really document the various keys that could be passed to functions like
Sentry\init()
.For example:
There are tons of configuration options, and tools like PHPStan and Psalm can pick these up.
Solution Brainstorm
It would be nice to declare the the types in the Sentry SDK directly, both for documentation and for type-checking purposes:
Note: the 3
...
at the end are part of the type signature (more keys allowed), but obviously, my example is far from exhaustive :DThis can generally be done with functions and methods in the SDK, over time :-)
The text was updated successfully, but these errors were encountered: