for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\Platform\Exception\Runtime\App;
use Throwable;
/**
* Represents thrown to terminate application.
*
* Such exception should be caught only by low-level classes that would handle {@link statusCode} and
* terminate the application.
* @package PHPKitchen\Platform\Exception\Runtime\App
* @author Dmitry Kolodko <[email protected]>
*/
class ExitException extends \Exception {
* @var int the exit status code
public $statusCode;
* Constructor.
* @param int $status the exit status code
* @param string $message error message
$message
string|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.
* @param int $code error code
* @param Throwable $previous The previous exception used for the exception chaining.
$previous
null|Throwable
public function __construct($status = 0, $message = null, $code = 0, Throwable $previous = null) {
$this->statusCode = $status;
parent::__construct($message, $code, $previous);
}
public function getName() {
return 'App Exit';
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.