Skip to content

Commit

Permalink
Fix parameter names for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Oct 30, 2024
1 parent d365fa7 commit e6711ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Illuminate/Foundation/Configuration/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,27 +417,27 @@ public function priority(array $priority)
/**
* Append middleware to the priority middleware.
*
* @param array|string $middlewareToPutTheNewMiddlewareAfter
* @param string $theMiddlewareToAppend
* @param array|string $after
* @param string $append
* @return $this
*/
public function appendToPriorityList($middlewareToPutTheNewMiddlewareAfter, $theMiddlewareToAppend)
public function appendToPriorityList($after, $append)
{
$this->appendPriority[$theMiddlewareToAppend] = $middlewareToPutTheNewMiddlewareAfter;
$this->appendPriority[$append] = $after;

return $this;
}

/**
* Prepend middleware to the priority middleware.
*
* @param array|string $middlewareToPutTheNewMiddlewareBefore
* @param string $theMiddlewareToPrepend
* @param array|string $before
* @param string $prepend
* @return $this
*/
public function prependToPriorityList($middlewareToPutTheNewMiddlewareBefore, $theMiddlewareToPrepend)
public function prependToPriorityList($before, $prepend)
{
$this->prependPriority[$theMiddlewareToPrepend] = $middlewareToPutTheNewMiddlewareBefore;
$this->prependPriority[$prepend] = $before;

return $this;
}
Expand Down

0 comments on commit e6711ba

Please sign in to comment.