Skip to content

Commit

Permalink
[TASK] Remove superfluous nullable return types
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler authored and renovate[bot] committed Dec 11, 2023
1 parent a4726df commit ddaf224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IO/Validator/NotEmptyValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class NotEmptyValidator extends AbstractValidator
'strict' => false,
];

public function __invoke(?string $input): ?string
public function __invoke(?string $input): string
{
if (null === $input || '' === $input) {
throw Exception\ValidationException::create('The given input must not be empty.');
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Fixtures/ModifyingValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class ModifyingValidator extends IO\Validator\AbstractValidator
{
private const TYPE = 'modifying';

public function __invoke(?string $input): ?string
public function __invoke(?string $input): string
{
return strtoupper((string) $input);
}
Expand Down

0 comments on commit ddaf224

Please sign in to comment.