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

[Block][Page] Switch to strict types #24

Merged
merged 4 commits into from
Sep 13, 2017
Merged

[Block][Page] Switch to strict types #24

merged 4 commits into from
Sep 13, 2017

Conversation

shinoks
Copy link
Contributor

@shinoks shinoks commented Sep 13, 2017

No description provided.

*/
public function setContent($content);
public function setContent(?string $content): void;

/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ImageInterface|null

{
return $this->content;
}

/**
* {@inheritdoc}
*/
public function setContent($content)
public function setContent(?string $content): void
{
$this->content = $content;
}

/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you switch @mixed to {@inheritdoc}?


/**
* @return ImageInterface
*/
public function getImage();
public function getImage(): ?ImageInterface;

/**
* @param ImageInterface $image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ImageInterface|null

{
return $this->getPageTranslation()->getName();
}

/**
* {@inheritdoc}
*/
public function setName($name)
public function setName(?string $name): void
{
$this->getPageTranslation()->setName($name);
}

/**
* @return PageTranslationInterface|TranslationInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PageTranslationInterface|TranslationInterface or null 😄

@bitbager bitbager changed the title [Block Page] Switch to strict types [Block][Page] Switch to strict types Sep 13, 2017
@bitbager bitbager merged commit 34e84ca into BitBagCommerce:dev Sep 13, 2017
@bitbager
Copy link
Member

Thank you, Paweł! 🍺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants