Skip to content

Commit

Permalink
re order arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Oct 31, 2016
1 parent ef1e133 commit 022dbb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Console/Scheduling/CallbackEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ class CallbackEvent extends Event
* Create a new event instance.
*
* @param string $callback
* @param array $parameters
* @param \Illuminate\Contracts\Cache\Repository $cache
* @param array $parameters
* @return void
*
* @throws \InvalidArgumentException
*/
public function __construct($callback, array $parameters = [], Cache $cache)
public function __construct($callback, Cache $cache, array $parameters = [])
{
if (! is_string($callback) && ! is_callable($callback)) {
throw new InvalidArgumentException(
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(Cache $cache)
*/
public function call($callback, array $parameters = [])
{
$this->events[] = $event = new CallbackEvent($callback, $parameters, $this->cache);
$this->events[] = $event = new CallbackEvent($callback, $this->cache, $parameters);

return $event;
}
Expand Down

0 comments on commit 022dbb3

Please sign in to comment.