for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Graze DataStructure
*
* Copyright (c) 2014 Nature Delivered Ltd. <http://graze.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @see http://github.com/graze/data-structure/blob/master/LICENSE
* @link http://github.com/graze/data-structure
*/
namespace Graze\DataStructure\Exception;
use Exception;
use OutOfBoundsException;
class RegisteredKeyException extends OutOfBoundsException
{
/**
* @param string $key
* @param Exception $previous
$previous
null|Exception
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($key, Exception $previous = null)
parent::__construct(sprintf('Value with key "%s" is already registered', $key), 0, $previous);
}
This check looks for
@paramannotations 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.