Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: MessageFormatter argType of "String" isn't valid #3191

Closed
HughieW opened this issue Jul 1, 2020 · 0 comments
Closed

Bug: MessageFormatter argType of "String" isn't valid #3191

HughieW opened this issue Jul 1, 2020 · 0 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@HughieW
Copy link
Contributor

HughieW commented Jul 1, 2020

Direction
System/Language/Language.php uses PHP's MessageFormatter class for international support. In some cases, an argType of "string" is used, which is not a valid argType. An example is in System/Language/en/Email.php, line 26. This came to light for me when trying to simply send an email, which did send, but threw an error trying to log the success message. Having done some testing, I found this error, simply removing the "string" from the type fixes it. Looking through the language files, there are very few instances where this appears

CodeIgniter 4 version
4.0.2

Affected module(s)
System/Language/en/*.php

Context

  • OS: Ubuntu 20.04
  • Web server: Apache 2.4
  • PHP version: 7.4.7
@HughieW HughieW added the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

1 participant