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

[5.3] Rework form validation #42752

Draft
wants to merge 16 commits into
base: 5.3-dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
PHPCS
  • Loading branch information
wilsonge committed Feb 25, 2024
commit 8597da134693d54db517ae78416efd88009e59a5
1 change: 0 additions & 1 deletion libraries/src/Form/Constraint/AbstractConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace Joomla\CMS\Form\Constraint;

use Joomla\CMS\Form\Constraint\ConstraintInterface;
use Joomla\CMS\Form\FormField;
use Joomla\CMS\Language\Text;

Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Form/Field/TextField.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\FormField;
use Joomla\CMS\Form\Constraint\FieldLengthConstraint;
use Joomla\CMS\Form\FormField;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Form/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Joomla\CMS\Form;

use Joomla\CMS\Factory;
use Joomla\CMS\Form\Exception\ValidationException;
use Joomla\CMS\Form\Validation\Field\DisabledResponseField;
use Joomla\CMS\Form\Validation\Field\LegacyInvalidField;
use Joomla\CMS\Form\Validation\Field\LegacyValidField;
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Form/FormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

use Joomla\CMS\Factory;
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Form\Field\SubformField;
use Joomla\CMS\Form\Rule\FormRuleInterface;
use Joomla\CMS\Form\Constraint\FieldRequiredConstraint;
use Joomla\CMS\Form\Constraint\LegacyRuleConstraint;
use Joomla\CMS\Form\Field\SubformField;
use Joomla\CMS\Form\Rule\FormRuleInterface;
use Joomla\CMS\Form\Validation\FieldValidationResponse;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\FileLayout;
Expand Down
2 changes: 2 additions & 0 deletions libraries/src/Form/Rule/AbstractRegexRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

namespace Joomla\CMS\Form\Rule;

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

use Joomla\CMS\Form\Form;
use Joomla\Registry\Registry;
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Form/Validation/Field/LegacyInvalidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Joomla\CMS\Form\Constraint\ConstraintInterface;
use Joomla\CMS\Form\Validation\FieldValidationResponseInterface;
use Joomla\CMS\Language\Text;

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