summaryrefslogtreecommitdiff
path: root/src/Util.php
blob: 817e8a1a59868e13916c2cd02525e55c78ffb091 (plain)
1
2
3
4
5
6
7
<?php

function throw_if_null($arg) {
  if ($arg === null) throw new Exception('argument is null');
}

?>