Skip to content

Commit e7237d7

Browse files
committed
Update error_types default value and documentation explanation
1 parent 8bd0443 commit e7237d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/platforms/php/common/configuration/options.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ Checks whether the provided class name is of a given type or subtype.
146146

147147
</SdkOption>
148148

149-
<SdkOption name="error_types" type='int' defaultValue='E_ALL'>
149+
<SdkOption name="error_types" type='int' defaultValue='error_reporting()'>
150150

151151
Sets which errors are reported. It takes the same values as PHP's [`error_reporting`](https://www.php.net/manual/errorfunc.configuration.php#ini.error-reporting) configuration parameter.
152152

153-
By default all types of errors are be reported (equivalent to `E_ALL`).
153+
By default, the error types reported are determined by the value returned by the `error_reporting()` function, which can change at runtime. Alternately, you can set the option to a fixed value by setting its value to a bitmask of the PHP `E_*` constants.
154154

155155
</SdkOption>
156156

0 commit comments

Comments
 (0)