Skip to content

Breaking change in 4.1 - returns instance of Illuminate\Support\HtmlString #205

Description

@DarrenChowles

I noticed after updating from 4.0 to 4.1, the Generator now returns an instance of Illuminate\Support\HtmlString rather than a string.

3b72108#diff-4ee5eaad222ef0782fccd29473a5f1860988b7cf91cdcd0a12628b2377972b36L165

Luckily the "fix" is simply casting this to a string:

$var = (string)QrCode::format('svg')->margin(0)->size(200)->generate($inlineUrl);

Hopefully this helps anybody experiencing this issue after updating.

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