Skip to content

Commit

Permalink
Rename numeric to number because numeric is reserved
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jan 17, 2025
1 parent 2c25de7 commit a276ea9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Filter/Numeric.php → Filter/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Yireo\LokiComponents\Filter;

class Numeric implements FilterInterface
class Number implements FilterInterface
{
public function filter(mixed $value): mixed
{
Expand Down
2 changes: 1 addition & 1 deletion Filter/PositiveNumeric.php → Filter/PositiveNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Yireo\LokiComponents\Filter;

class PositiveNumeric implements FilterInterface
class PositiveNumber implements FilterInterface
{
public function filter(mixed $value): mixed
{
Expand Down
4 changes: 2 additions & 2 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
<item name="trim" xsi:type="object">Yireo\LokiComponents\Filter\Trim</item>
<item name="capitalize" xsi:type="object">Yireo\LokiComponents\Filter\Capitalize</item>
<item name="lowercase" xsi:type="object">Yireo\LokiComponents\Filter\Lowercase</item>
<item name="numeric" xsi:type="object">Yireo\LokiComponents\Filter\Numeric</item>
<item name="positive_numeric" xsi:type="object">Yireo\LokiComponents\Filter\PositiveNumeric</item>
<item name="number" xsi:type="object">Yireo\LokiComponents\Filter\Number</item>
<item name="positive_number" xsi:type="object">Yireo\LokiComponents\Filter\PositiveNumber</item>
<item name="uppercase" xsi:type="object">Yireo\LokiComponents\Filter\Uppercase</item>
</argument>
</arguments>
Expand Down

0 comments on commit a276ea9

Please sign in to comment.