Skip to content

Commit f5df251

Browse files
authored
Stop suppressing 64bit integer PHP warnings as 64bit longs are now suppoted (#76)
1 parent db243a7 commit f5df251

File tree

1 file changed

+0
-11
lines changed
  • packages/playground/wordpress/src

1 file changed

+0
-11
lines changed

packages/playground/wordpress/src/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,6 @@ export async function setupPlatformLevelMuPlugins(php: UniversalPHP) {
262262
$playground_consts = array_keys($playground_consts);
263263
}
264264
set_error_handler(function($severity, $message, $file, $line) use($playground_consts) {
265-
/**
266-
* This is a temporary workaround to hide the 32bit integer warnings that
267-
* appear when using various time related function, such as strtotime and mktime.
268-
* Examples of the warnings that are displayed:
269-
*
270-
* Warning: mktime(): Epoch doesn't fit in a PHP integer in <file>
271-
* Warning: strtotime(): Epoch doesn't fit in a PHP integer in <file>
272-
*/
273-
if (strpos($message, "fit in a PHP integer") !== false) {
274-
return;
275-
}
276265
/**
277266
* Networking support in Playground registers a http_api_transports filter.
278267
*

0 commit comments

Comments
 (0)