Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0] Remove unicode constant in form rule #44662

Open
wants to merge 1 commit into
base: 6.0-dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions libraries/src/Form/FormRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,16 @@
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* Remove phpcs exception with deprecated constant JCOMPAT_UNICODE_PROPERTIES
* @phpcs:disable PSR1.Files.SideEffects
*/

namespace Joomla\CMS\Form;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

use Joomla\Registry\Registry;

// Detect if we have full UTF-8 and unicode PCRE support.
if (!\defined('JCOMPAT_UNICODE_PROPERTIES')) {
/**
* Flag indicating UTF-8 and PCRE support is present
*
* @const boolean
* @since 1.6
*
* @deprecated 4.0 will be removed in 6.0
* Will be removed without replacement (Also remove phpcs exception)
*/
\define('JCOMPAT_UNICODE_PROPERTIES', (bool) @preg_match('/\pL/u', 'a'));
}

/**
* Form Rule class for the Joomla Platform.
*
Expand Down