Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an error with newer PHP versions erroring on date() calls #63

Merged
merged 1 commit into from Jun 10, 2022

Conversation

scottchiefbaker
Copy link
Collaborator

This solves: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in ...

You can recreate this error with the following code:

$x = [ 'query_time' => '123456789 ms', 'query_time2' => 123456789 ];
k($x);

This solves: Uncaught TypeError: date(): Argument mmucklo#2 ($timestamp) must be of type ?int, string given in ...

You can recreate this error with the following code:

```
$x = [ 'query_time' => '123456789 ms', 'query_time2' => 123456789 ];
k($x);
```
@scottchiefbaker scottchiefbaker merged commit 705561b into mmucklo:master Jun 10, 2022
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.

None yet

1 participant