Skip to content

Commit

Permalink
group default value as 1
Browse files Browse the repository at this point in the history
  • Loading branch information
miqayelsrapionyan committed Jul 30, 2024
1 parent 58d19e2 commit e8147b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": ">=8.1",
"php": ">=8.2",
"grpc/grpc": "^1.52",
"ext-grpc": "*",
"google/protobuf": "^3.17"
Expand Down
6 changes: 3 additions & 3 deletions src/ValueObjects/QueryTranslationItemsValueObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
protected readonly int $page = 0,
protected readonly int $first = 10,
protected readonly bool $findAll = false,
protected readonly ?int $group = null,
protected readonly int $group = 1,
){
}

Expand All @@ -31,9 +31,9 @@ public function getFindAll(): bool
}

/**
* @return int|null
* @return int
*/
public function getGroup(): ?int
public function getGroup(): int
{
return $this->group;
}
Expand Down

0 comments on commit e8147b9

Please sign in to comment.