for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SfCod\QueueBundle\Exception;
use InvalidArgumentException;
/**
* Class InvalidPayloadException
*
* @author Virchenko Maksim <[email protected]>
* @package SfCod\QueueBundle\Exception
*/
class InvalidPayloadException extends InvalidArgumentException
{
* Create a new exception instance.
* @param string|null $message
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($message = null)
parent::__construct($message ?: json_last_error());
}
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.