Skip to content

fix: Pass charset/Security into ErrorHandler mock controller bootstrap - #560

Merged
hellopablo merged 1 commit into
nails:developfrom
hellopablo:fix/errorhandler-ci-security-charset-develop
Sep 7, 2026
Merged

fix: Pass charset/Security into ErrorHandler mock controller bootstrap#560
hellopablo merged 1 commit into
nails:developfrom
hellopablo:fix/errorhandler-ci-security-charset-develop

Conversation

@hellopablo

Copy link
Copy Markdown
Member

Same fix as #559 but targeting develop.

pocketarc/codeigniter requires constructor args for Security/Input (CI_Security($charset) and CI_Input(CI_Security)). instantiateMockController() was still calling load_class() with no args, causing ArgumentCountError while rendering fatal error screens.

Change

In ErrorHandler::instantiateMockController(), pass charset into Security and the Security instance into Input, matching system/core/CodeIgniter.php.

pocketarc/codeigniter requires CI_Security($charset) and CI_Input(CI_Security). instantiateMockController() was still calling load_class() with no args, causing ArgumentCountError while rendering fatal error screens.
@hellopablo
hellopablo merged commit 9b4691c into nails:develop Sep 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant