Skip to content

TypeError in Strings::toAscii() #216

Description

@strider2038

Version: 3.1.1

Bug Description

iconv() https://github.com/nette/utils/blob/master/src/Utils/Strings.php#L167 returns false on some strings

TypeError: Return value of Nette\Utils\Strings::toAscii() must be of the type string, bool returned in /app/services/core/vendor/nette/utils/src/Utils/Strings.php on line 183

Steps To Reproduce

Original bug occurs when package was updated from 3.1.0 to 3.1.1 as a dependency for Easy Coding Standards library https://github.com/symplify/symplify/issues/1787

The problem occurs on Linux Alpine Docker image.

Expected Behavior

No type error

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions