# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Helper/Handler.php

TablePress – Tables in WordPress made easy, version 3.4. 47 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Helper/Handler.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Helper/Handler.php
- Modified: 2026-06-10T03:54:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Helper/Handler.php#L10-L20`.

```php
<?php

namespace TablePress\PhpOffice\PhpSpreadsheet\Helper;

/** @internal */
final class Handler
{
	private static string $invalidHex = 'Y';

	// A bunch of methods to show that we continue
	// to capture messages even using PhpUnit 10.
	public static function suppressed(): bool
	{
		return @trigger_error('hello');
	}

	public static function deprecated(): string
	{
		return (string) hexdec(self::$invalidHex);
	}

	public static function notice(string $value): void
	{
		date_default_timezone_set($value);
	}

	public static function warning(): bool
	{
		return file_get_contents(__FILE__ . 'noexist') !== false;
	}

	public static function userDeprecated(): bool
	{
		return trigger_error('hello', E_USER_DEPRECATED);
	}

	public static function userNotice(): bool
	{
		return trigger_error('userNotice', E_USER_NOTICE);
	}

	public static function userWarning(): bool
	{
		return trigger_error('userWarning', E_USER_WARNING);
	}
}

```
