We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5389594 + caa241e commit 6bb5af4Copy full SHA for 6bb5af4
src/commit.c
@@ -359,7 +359,7 @@ PHP_METHOD(git_commit, getParent)
359
360
ret = git_commit_parent(&commit, this->object,offset);
361
if(ret != GIT_SUCCESS){
362
- php_error_docref(NULL TSRMLS_CC, E_ERROR, "specified offset not found.");
+ zend_throw_exception_ex(spl_ce_InvalidArgumentException, 0 TSRMLS_CC, "specified offset not found");
363
RETURN_FALSE;
364
}
365
0 commit comments