Skip to content

Conversation

@macghriogair
Copy link
Contributor

fixes 102

php -v
PHP 8.1.8 (cli) (built: Jul 11 2022 08:53:35) (NTS)
---
TypeError date(): Argument #2 ($timestamp) must be of type ?int, float given
TypeError Uncaught \TypeError

TypeError at /xxx/vendor/codeception/module-webdriver/src/Codeception/Module/WebDriver.php:721

Fixes a type error when calling date function with a float while formatting log entries:

@Naktibalda Naktibalda merged commit e0aa26c into Codeception:2.0 Jul 27, 2022
Naktibalda pushed a commit that referenced this pull request Jul 27, 2022
#103)

* [module-webdriver] fix type error in PHP 8.1 when converting milliseconds to seconds

* simplify using intval

Co-authored-by: Patrick Mac Gregor <[email protected]>
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