Skip to content
Permalink
Browse files

Assert::with() uses Closure::call()

  • Loading branch information...
dg committed Feb 13, 2019
1 parent 512bd7b commit 7317548088a7af72bfbc01e9319234f1b7a0668b
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 src/Framework/Assert.php
@@ -438,7 +438,7 @@ private static function describe(string $reason, string $description = null): st
public static function with($obj, \Closure $closure)
{
return $closure->bindTo($obj, $obj)->__invoke();
return $closure->call($obj);
}

0 comments on commit 7317548

Please sign in to comment.
You can’t perform that action at this time.