Your project should not use invalid return types

More information: https://insight.symfony.com/what-we-analyse/php.invalid_return_typehint

  1. protected function toPngData(\GdImage $image): string
  2. {
  3. \ob_start();
  4. \imagepng($image);
  5. return \ob_get_clean();
    Method fpdf\ImageParsers\AbstractGdImageParser::toPngData() should return string but returns string|false.
    Time to fix: about 9 minutes
    Read doc Open Issue Permalink Copy Prompt
    Last edited by Bibi
  6. }
  7. /**
  8. * @return resource
  9. */