Release Date: Unreleased
4.6.0 release of CodeIgniter4
- TBD
The exception class has been redesigned. See :ref:`exception-design` for details. The following breaking changes have been made accordingly:
Validation::setRule()
now throwsCodeIgniter\Exceptions\InvalidArgumentException
instead ofTypeError
.CriticalError
now extendsCodeIgniter\Exceptions\RuntimeException
instead ofError
.DatabaseException
now extendsCodeIgniter\Exceptions\RuntimeException
instead ofError
.ConfigException
now extendsCodeIgniter\Exceptions\RuntimeException
instead ofCodeIgniter\Exceptions\CriticalError
.TestException
now extendsCodeIgniter\Exceptions\LogicException
instead ofCodeIgniter\Exceptions\CriticalError
.
- API: The deprecated
failValidationError()
method inCodeIgniter\API\ResponseTrait
has been removed. UsefailValidationErrors()
instead. - HTTP: The deprecated
getReason()
method inCodeIgniter\HTTP\Response
andResponseInterface
has been removed. UsegetReasonPhrase()
instead. - Logger: The deprecated
CodeIgniter\Log\Logger::cleanFilenames()
andCodeIgniter\Test\TestLogger::cleanup()
have been removed. Use theclean_path()
function instead.
The exception class has been redesigned. See :ref:`exception-design` for details. The following new Exception classes have been added accordingly:
CodeIgniter\Exceptions\LogicException
CodeIgniter\Exceptions\RuntimeException
CodeIgniter\Exceptions\BadFunctionCallException
CodeIgniter\Exceptions\BadMethodCallException
CodeIgniter\Exceptions\InvalidArgumentException
The following new Exception interfaces have been added:
CodeIgniter\Files\Exceptions\ExceptionInterface
CodeIgniter\HTTP\Exceptions\ExceptionInterface
CodeIgniter\Router\Exceptions\ExceptionInterface
- Added retainMultiplePatterns() to FileCollection class. See :ref:`FileCollection::retainMultiplePatterns() <file-collections-retain-multiple-patterns>`.
The exception classes have been redesigned. See :ref:`exception-design` for details. The following changes have been made accordingly:
- The
deleteMatching()
method in Cache Handler classes now throwsCodeIgniter\Exceptions\BadMethodCallException
instead ofException
. Cache\ResponseCache::get()
now throwsCodeIgniter\Exceptions\RuntimeException
instead ofException
.- Classes that threw
RuntimeException
have been changed to throwCodeIgniter\Exceptions\RuntimeException
. - Classes that threw
InvalidArgumentException
have been changed to throwCodeIgniter\Exceptions\InvalidArgumentException
. - Classes that threw
LogicException
have been changed to throwCodeIgniter\Exceptions\LogicException
. - Classes that threw
BadMethodCallException
have been changed to throwCodeIgniter\Exceptions\BadMethodCallException
. - Classes that threw
BadFunctionCallException
have been changed to throwCodeIgniter\Exceptions\BadFunctionCallException
. RedirectException
now extendsCodeIgniter\Exceptions\RuntimeException
instead ofException
.PageNotFoundException
now extendsCodeIgniter\Exceptions\RuntimeException
instead ofOutOfBoundsException
.
See the repo's CHANGELOG.md for a complete list of bugs fixed.