Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CacheLifetimeBehaviourInterface in ArticleBridge #621

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions Document/Structure/ArticleBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,26 @@ class ArticleBridge extends StructureBridge implements RoutableStructureInterfac

public function getView(): string
{
return $this->structure->getView();
/** @var string $view */
$view = $this->structure->getView();

return $view;
luca-rath marked this conversation as resolved.
Show resolved Hide resolved
}

/**
* @return string
*/
public function getController()
{
return $this->structure->getController();
/** @var string $controller */
$controller = $this->structure->getController();

return $controller;
luca-rath marked this conversation as resolved.
Show resolved Hide resolved
}

/**
* @return array{type: string, value: string}
*/
public function getCacheLifeTime()
luca-rath marked this conversation as resolved.
Show resolved Hide resolved
{
/** @var array{type: string, value: string} $cacheLifetime */
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1525,11 +1525,6 @@ parameters:
count: 1
path: Document/Structure/ArticleBridge.php

-
message: "#^Method Sulu\\\\Bundle\\\\ArticleBundle\\\\Document\\\\Structure\\\\ArticleBridge\\:\\:getView\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: Document/Structure/ArticleBridge.php

-
message: "#^Method Sulu\\\\Bundle\\\\ArticleBundle\\\\Document\\\\Structure\\\\ArticleBridge\\:\\:setUuid\\(\\) has no return type specified\\.$#"
count: 1
Expand Down