Skip to content

Commit

Permalink
some classes marked as final (BC break)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 30, 2024
1 parent 4a637c3 commit c68c230
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Forms/ControlGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* A user group of form controls.
*/
class ControlGroup
final class ControlGroup
{
protected \SplObjectStorage $controls;
private array $options = [];
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* Forms helpers.
*/
class Helpers
final class Helpers
{
use Nette\StaticClass;

Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Single validation rule or condition represented as value object.
*/
class Rule
final class Rule
{
public Control $control;
public mixed $validator;
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* List of validation & condition rules.
* @implements \IteratorAggregate<int, Rule>
*/
class Rules implements \IteratorAggregate
final class Rules implements \IteratorAggregate
{
private const NegRules = [
Form::Filled => Form::Blank,
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Common validators.
*/
class Validator
final class Validator
{
use Nette\StaticClass;

Expand Down

0 comments on commit c68c230

Please sign in to comment.