Skip to content

Commit

Permalink
Fix getMediaId return type (#152)
Browse files Browse the repository at this point in the history
* Fix getMediaId return type

* fix lint error

* ignore phpstan error
  • Loading branch information
Prokyonn authored Jun 3, 2020
1 parent ac74df7 commit 4fb0e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected function getMoreText(ContentProjectionInterface $contentProjection, ar
/**
* @param mixed[] $data
*/
protected function getMediaId(ContentProjectionInterface $contentProjection, array $data): ?string
protected function getMediaId(ContentProjectionInterface $contentProjection, array $data): ?int
{
if ($contentProjection instanceof ExcerptInterface) {
if ($excerptImage = $contentProjection->getExcerptImage()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function testGetPublished(): void

$dataItem = $this->getContentDataItem($contentProjection->reveal(), []);

/* @phpstan-ignore-next-line */
$this->assertSame($published, $dataItem->getPublished());
}

Expand Down

0 comments on commit 4fb0e45

Please sign in to comment.