Skip to content

Fix incorrect argument order when calling previous error handler#28

Merged
freekmurze merged 1 commit intospatie:mainfrom
RasmusStahl:main
May 22, 2024
Merged

Fix incorrect argument order when calling previous error handler#28
freekmurze merged 1 commit intospatie:mainfrom
RasmusStahl:main

Conversation

@RasmusStahl
Copy link
Contributor

Think this is the correct argument order, see here: https://www.php.net/manual/en/function.set-error-handler.php#refsect1-function.set-error-handler-parameters

Easy way to reproduce is if you set previousErrorHandler to Ignition error handler, you should get a Argument #1 ($level) must be of type int, string given error

@freekmurze freekmurze merged commit 220a7c8 into spatie:main May 22, 2024
@freekmurze
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants