Skip to content

Commit

Permalink
Make the ElifeAssessment's title mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiosironi committed Jan 9, 2025
1 parent 4a77703 commit 235eca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/Model/ElifeAssessment.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class ElifeAssessment implements Model
* @internal
*/
public function __construct(
string $title = null,
string $title,
array $significance = null,
array $strength = null
) {
Expand All @@ -21,10 +21,7 @@ public function __construct(
$this->strength = $strength;
}

/**
* @return string|null
*/
public function getTitle()
public function getTitle(): string
{
return $this->title;
}
Expand Down
2 changes: 1 addition & 1 deletion test/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private function defaultTestData()
},
ElifeAssessment::class => function () {
return [
'title' => null,
'title' => 'eLife Assessment',
'significance' => ['Landmark', 'Important'],
'strength' => ['Solid', 'Adequate'],
];
Expand Down

0 comments on commit 235eca8

Please sign in to comment.