for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\JsonReference\Pointer;
final class InvalidPointerException extends \InvalidArgumentException
{
/**
* @param string $type
*
* @return static
*/
public static function invalidType($type)
return new static(sprintf('Only strings are valid pointers, got "%s"', $type));
}
* @param string $value
public static function nonexistentValue($value)
return new static(sprintf('The pointer referenced a value that does not exist. The value was: "%s"', $value));
* @param string $target
public static function invalidTarget($target)
return new static(sprintf('Cannot set the value for %s because it is not within object or array', $target));