for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPDaemon\Exceptions;
class ClearStack extends \Exception
{
/**
* Thread object
* @var object Thread
*/
protected $thread;
* @param string $msg Message
* @param integer $code Code
* @param \PHPDaemon\Thread\Generic $thread
$thread
\PHPDaemon\Thread\Generic|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.
public function __construct($msg, $code, $thread = null)
parent::__construct($msg, $code);
$this->thread = $thread;
}
* Gets associated Thread object
* @return object Thread
public function getThread()
return $this->thread;
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.