Open misantron opened 10 months ago
try {
$this->head($uri, []);
return true;
} catch (Gitlab\Exception\RuntimeException $ex) {
if (404 === $ex->getCode()) {
return false;
}
throw $ex;
}
@GrahamCampbell can I use such a code to handle exception and check entity existence?
Hello, take a look please