for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace tinymeng\tools\exception;
use Exception;
/**
* Class TException
* @package tinymeng\tools\exception
* @Author: TinyMeng <[email protected]>
* @Created: 2020/8/17
*/
class TException extends \Exception
{
* @var int
private $headers;
public function __construct(int $statusCode, string $message = '', Exception $previous = null, array $headers = [], $code = 0)
$this->headers = $headers;
$headers
array
integer
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
/** message */
if(empty($message)) $message = isset(StatusCode::$status_code[$statusCode]) ? StatusCode::$status_code[$statusCode] :StatusCode::$status_code[StatusCode::COMMON_UNKNOWN];
parent::__construct('ERROR_TINYMENG_TOOL: '.$message, $code, $previous);
}
public function getHeaders()
return $this->headers;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..