for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the MilioooMessageBundle package.
*
* (c) Michiel boeckaert <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Miliooo\Messaging\Builder\Exceptions;
/**
* BuilderException.
* A builder exception happens when the builder is not able to build a valid
* thread object.
* The controller should catch those exceptions, translate them and show them to the user
* @author Michiel Boeckaert <[email protected]>
class MessagingBuilderException extends \Exception
{
* Constructor.
* @param string $message
* @param integer $code
* @param \Exception $previous
$previous
\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, $code = 0, $previous = null)
parent::__construct($message, $code, $previous);
}
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.