Fix normalizer not being prefixed correctly

[MAILPOET-3105]
This commit is contained in:
Pavel Dohnal
2020-08-13 13:41:38 +02:00
committed by Veljko V
parent 6b286bdccc
commit 585a4d0332
4 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,11 @@
<?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);