Files
piratepoet/prefixer/fix-symfony-polyfill.php
Pavel Dohnal 585a4d0332 Fix normalizer not being prefixed correctly
[MAILPOET-3105]
2020-08-13 14:58:15 +02:00

12 lines
404 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('use Normalizer;', 'use MailPoetVendor\\Normalizer;', $data);
file_put_contents($file, $data);