for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tgallice\Wit\Exception;
use Tgallice\Wit\Model\Context;
class ConversationException extends \RuntimeException
{
/**
* @var string|null
*/
private $sessionId;
* @var Context|null
private $context;
* @var array
private $stepData;
* @param string $message
* @param string|null $sessionId
* @param Context|null $context
* @param array $step
$step
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 __construct($message, $sessionId = null, Context $context = null, array $stepData = [])
parent::__construct($message);
$this->sessionId = $sessionId;
$this->context = $context;
$this->stepData = $stepData;
}
* @return string|null
public function getSessionId()
return $this->sessionId;
* @return Context|null
public function getContext()
return $this->context;
* @return array
public function getStepData()
return $this->stepData;
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.