for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kunstmaan\AdminBundle\Helper\AdminPanel;
class AdminPanelAction implements AdminPanelActionInterface
{
/**
* @var array
*/
private $url;
* @var string
private $icon;
private $label;
private $template = '@KunstmaanAdmin/AdminPanel/_admin_panel_action.html.twig';
* @param array $url The url path and parameters
* @param string $label The label
* @param string $icon The icon
$icon
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* @param string $template The template
$template
public function __construct(
array $url,
$label,
$icon = null,
$template = null
) {
$this->url = $url;
$this->icon = $icon;
$this->label = $label;
if (!empty($template)) {
$this->template = $template;
}
* @return array
public function getUrl()
return $this->url;
* @return string
public function getIcon()
return $this->icon;
public function getLabel()
return $this->label;
public function getTemplate()
return $this->template;
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.