for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\controller_annotations\Configuration;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route as BaseRoute;
/**
* @Annotation
*/
class Route extends BaseRoute
{
* @var string
protected $admin;
* @return bool
public function isAdmin()
return $this->admin;
}
* @param bool $admin
* @return Route
public function setAdmin($admin)
$this->admin = $admin;
$admin
string
boolean
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
return $this;
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.