Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added some validation to the installer.

  • Loading branch information...
commit d1ff388f2ad9fe3179d44baa09f74fa54b8953af 1 parent 4008eaf
Johannes Wehner authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  classes/TaggerInstaller.class.php
View
3  classes/TaggerInstaller.class.php
@@ -5,6 +5,9 @@
class TaggerInstaller {
public function __construct($tagger) {
+ if (!isset($tagger)) {
+ throw new InvalidArgumentException('The installer needs a valid Tagger object.');
+ }
$this->install($tagger);
}
Please sign in to comment.
Something went wrong with that request. Please try again.