Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.65 KB

File metadata and controls

44 lines (32 loc) · 1.65 KB

Version 4.7.5

Release Date: Unreleased

4.7.5 release of CodeIgniter4

  • CodeIgniter: storePreviousURL() now checks $this->request instanceof IncomingRequest instead of using method_exists($this->request, 'isAJAX'). Previously, any request object with an isAJAX() method was accepted; now only IncomingRequest instances are checked. If you use a custom request class that implements isAJAX(), ensure it extends IncomingRequest.
  • CodeIgniter: Fixed a bug where gatherOutput() could be called twice when startController() returned a ResponseInterface (e.g., from filter attributes or closure routes).
  • CodeIgniter: Changed is_object($this->controller) && $this->controller::class === 'Closure' to $this->controller instanceof Closure for consistency and type safety.
  • CLIRequest: Fixed a bug where parseCommand() could throw a TypeError when argv is missing.
  • Content Security Policy: Fixed a bug where empty Content-Security-Policy, Content-Security-Policy-Report-Only, and Reporting-Endpoints response headers were generated when no corresponding values existed.
  • Logger: Fixed a bug where interpolating a log message with array or non-stringable context values could raise PHP warnings or errors.

See the repo's CHANGELOG.md for a complete list of bugs fixed.