Skip to content

Commit

Permalink
feature #6748 Make NullFilter::CHOICE_VALUE_* consts public (Sobak)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Make NullFilter::CHOICE_VALUE_* consts public

User may wish to use these constants in their applications to not rely on magic strings.

Closes #5917 (a very simple suggestion that's pending since 2023)

Commits
-------

0736923 Make NullFilter::CHOICE_VALUE_* consts public
  • Loading branch information
javiereguiluz committed Jan 21, 2025
2 parents a1d544d + 0736923 commit 322fd1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Filter/NullFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ final class NullFilter implements FilterInterface
{
use FilterTrait;

private const CHOICE_VALUE_NULL = 'null';
private const CHOICE_VALUE_NOT_NULL = 'not_null';
public const CHOICE_VALUE_NULL = 'null';
public const CHOICE_VALUE_NOT_NULL = 'not_null';

public static function new(string $propertyName, $label = null): self
{
Expand Down

0 comments on commit 322fd1c

Please sign in to comment.