for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Not found exception class
*/
namespace Graviton\ExceptionBundle\Exception;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://swisscom.ch
final class NotFoundException extends NotFoundHttpException implements RestExceptionInterface
{
use RestExceptionTrait;
* Constructor
* @param string $message Error message
* @param \Exception $prev Previous Exception
$prev
\Exception|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($message = "Not Found", $prev = null)
parent::__construct($message, $prev);
}
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.