Skip to content

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

Description

@HughieW

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions