Skip to content

Instantly share code, notes, and snippets.

@michabbb
Created January 19, 2022 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michabbb/d8b260cdf58587d38b5e8c7708893196 to your computer and use it in GitHub Desktop.
Save michabbb/d8b260cdf58587d38b5e8c7708893196 to your computer and use it in GitHub Desktop.
<?php declare(strict_types=1);
class Mode_test_exception extends Mode_test {
public function exception(): void
{
$this->throwerror($this->aConfig['error_reporting']['service']);
}
private function throwerror(array $params): void
{
throw new RuntimeException('das ist nur ein test (subroutine)');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment