From 177a72f2b6196f4e27ed0bf672be707d8b5ef774 Mon Sep 17 00:00:00 2001 From: Chris Cornutt Date: Sun, 4 Oct 2015 22:09:38 -0400 Subject: [PATCH] actually making the instance method statis --- src/Enforcer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Enforcer.php b/src/Enforcer.php index 54efef9..d1fc06b 100644 --- a/src/Enforcer.php +++ b/src/Enforcer.php @@ -16,7 +16,7 @@ class Enforcer * @param \Psecio\PropAuth\PolicySet|null $policySet Set of policies [optional] * @return \Psecio\PropAuth\Enforcer instance */ - public function instance(\Psecio\PropAuth\PolicySet $policySet = null) + public static function instance(\Psecio\PropAuth\PolicySet $policySet = null) { return new Enforcer($policySet); }