Skip to content

Commit

Permalink
Fix declaring extra constants when intl is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed May 12, 2020
1 parent 32ae25e commit 3bff59e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

use Symfony\Polyfill\Intl\Idn as p;

if (extension_loaded('intl')) {
return;
}

if (!defined('U_IDNA_PROHIBITED_ERROR')) {
define('U_IDNA_PROHIBITED_ERROR', 66560);
}
Expand Down

0 comments on commit 3bff59e

Please sign in to comment.