for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Gearman Bundle for Symfony2 / Symfony3
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Feel free to edit as you please, and have fun.
* @author Marc Morera <[email protected]>
*/
namespace Mkk\GearmanBundle\Exceptions;
use Mkk\GearmanBundle\Exceptions\Abstracts\AbstractGearmanException;
* GearmanBundle can't find worker specified as Gearman format Exception
class WorkerNameTooLongException extends AbstractGearmanException
{
* Construction method
* @param string $message 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 Code
* @param \Exception $previous Previous
$previous
null|\Exception
public function __construct($message = null, $code = 0, \Exception $previous = null)
$message = 'The function name + unique id cannot exceed 114 bytes.
You can change workers name or set a shortly unique key';
parent::__construct($message, $code, $previous);
}
This check marks files that end in a newline character, i.e. an empy line.
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.