-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3333 from tangix/add-upgrade-404
Added clear upgrade instructions to 4.0.4 docs
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
############################# | ||
Upgrading from 4.0.x to 4.0.4 | ||
############################# | ||
|
||
CodeIgniter 4.0.4 fixes a bug in the implementation of :doc:`Controller Filters </incoming/filters>`, breaking | ||
code implementing the ``FilterInterface``. | ||
|
||
**Update FilterInterface declarations** | ||
|
||
The method signatures for ``after()`` and ``before()`` must be updated to include ``$arguments``. The function | ||
definitions should be changed from:: | ||
|
||
public function before(RequestInterface $request) | ||
public function after(RequestInterface $request, ResponseInterface $response) | ||
|
||
to:: | ||
|
||
public function before(RequestInterface $request, $arguments = null) | ||
public function after(RequestInterface $request, ResponseInterface $response, $arguments = null) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters