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.
I noticed after updating from 4.0 to 4.1, the Generator now returns an instance of
Illuminate\Support\HtmlStringrather than a string.3b72108#diff-4ee5eaad222ef0782fccd29473a5f1860988b7cf91cdcd0a12628b2377972b36L165
Luckily the "fix" is simply casting this to a string:
Hopefully this helps anybody experiencing this issue after updating.