Skip to content

Commit 1b01dbb

Browse files
authored
Remove unicode constant in form rule (joomla#44662)
Thanks @laoneo ... all gone.
1 parent 26eedd6 commit 1b01dbb

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

libraries/src/Form/FormRule.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,16 @@
55
*
66
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
8-
*
9-
* Remove phpcs exception with deprecated constant JCOMPAT_UNICODE_PROPERTIES
10-
* @phpcs:disable PSR1.Files.SideEffects
118
*/
129

1310
namespace Joomla\CMS\Form;
1411

12+
// phpcs:disable PSR1.Files.SideEffects
1513
\defined('_JEXEC') or die;
14+
// phpcs:enable PSR1.Files.SideEffects
1615

1716
use Joomla\Registry\Registry;
1817

19-
// Detect if we have full UTF-8 and unicode PCRE support.
20-
if (!\defined('JCOMPAT_UNICODE_PROPERTIES')) {
21-
/**
22-
* Flag indicating UTF-8 and PCRE support is present
23-
*
24-
* @const boolean
25-
* @since 1.6
26-
*
27-
* @deprecated 4.0 will be removed in 6.0
28-
* Will be removed without replacement (Also remove phpcs exception)
29-
*/
30-
\define('JCOMPAT_UNICODE_PROPERTIES', (bool) @preg_match('/\pL/u', 'a'));
31-
}
32-
3318
/**
3419
* Form Rule class for the Joomla Platform.
3520
*

0 commit comments

Comments
 (0)