for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\JsonGuard\Pointer;
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 $character
public static function invalidFirstCharacter($character)
return new static(sprintf('A pointer must start with "/", got "%s"', $character));
* @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));