for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Fcm\Resources;
class Notification implements FcmResource
{
/**
* @var string|null
*/
protected $title;
protected $body;
protected $image;
protected $icon;
* @return string|null
public function getTitle(): ?string
return $this->title;
}
* @param string|null $title
* @return Notification
public function setTitle(?string $title): self
$this->title = $title;
return $this;
public function getBody(): ?string
return $this->body;
* @param string|null $body
public function setBody(?string $body): self
$this->body = $body;
public function getImage(): ?string
return $this->image;
* @param string|null $image
public function setImage(?string $image): self
$this->image = $image;
public function getIcon(): ?string
return $this->icon;
$image
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
public function setIcon(?string $icon): self
$this->icon = $icon;
* @return static
public static function create(): self
return new self;
* {@inheritdoc}
public function toArray(): array
return [
'title' => $this->getTitle(),
'body' => $this->getBody(),
'image' => $this->getImage(),
'icon' => $this->getIcon(),
];
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.