17 lines
639 B
PHP
17 lines
639 B
PHP
<?php
|
|
|
|
// throw exception if anything fails
|
|
set_error_handler(function ($severity, $message, $file, $line) {
|
|
throw new ErrorException($message, 0, $severity, $file, $line);
|
|
});
|
|
|
|
$file = __DIR__ . '/../vendor-prefixed/symfony/polyfill-intl-idn/Idn.php';
|
|
$data = file_get_contents($file);
|
|
$data = str_replace('\\Normalizer::', '\\MailPoetVendor\\Normalizer::', $data);
|
|
file_put_contents($file, $data);
|
|
|
|
$file = __DIR__ . '/../vendor-prefixed/symfony/polyfill-intl-normalizer/Normalizer.php';
|
|
$data = file_get_contents($file);
|
|
$data = str_replace('\\Normalizer::', '\\MailPoetVendor\\Normalizer::', $data);
|
|
file_put_contents($file, $data);
|