Skip to content

Commit

Permalink
removed T_CLASS to support PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
azeemhassni committed Apr 1, 2017
1 parent e54b379 commit 36ee8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Envalid.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function getFields()
public function addRule( $id, $rule )
{
if (!is_callable($rule) && !$rule instanceof RuleInterface) {
throw new \Exception("Rule must be callable or an instance of " . RuleInterface::class);
throw new \Exception("Rule must be callable or an instance of " . '\azi\Rules\Contracts\RuleInterface');
}

$this->rules[ $id ] = $rule;
Expand Down

0 comments on commit 36ee8ee

Please sign in to comment.