src/Exception/DirectoryException.php
public static function invalidEntry($value)
    {
        if (is_object($value)) {
            $value = get_class($value);
        }

        return new static(sprintf(
            'Directory entry `%s` is not an `%s` instance',
            $value,
            Action::class
        ));
    }
public static function invalidEntry($value)
    {
        if (is_object($value)) {
            $value = get_class($value);
        }

        return new static(sprintf(
            'Directory entry `%s` is not an `%s` instance',
            $value,
            Action::class
        ));
    }
@param mixed $value

@return static