for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kunstmaan\AdminListBundle\Exception;
/**
* class ExportException
*/
class ExportException extends \RuntimeException
{
/** @var mixed */
protected $data;
* Construct Exception.
*
* @param string $message Message
* @param mixed $data
* @param int $code
* @param \Throwable $previous
$previous
null|\Throwable
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($message = '', $data, $code = 0, \Throwable $previous = null)
parent::__construct($message, $code, $previous);
$this->data = $data;
}
* @return mixed
public function getData()
return $this->data;
public function setData($data)
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.