KnpLabs / snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage

Home Page:https://knplabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Declaration of Barryvdh\Snappy\IlluminateSnappyPdf::getFileContents($filename) must be compatible with Knp\Snappy\AbstractGenerator::getFileContents(string $filename): string

williamdes opened this issue · comments

   Symfony\Component\Debug\Exception\FatalErrorException  : Declaration of Barryvdh\Snappy\IlluminateSnappyPdf::getFileContents($filename) must be compatible with Knp\Snappy\AbstractGenerator::getFileContents(string $filename): string

  at /var/www/vendor/barryvdh/laravel-snappy/src/IlluminateSnappyPdf.php:27
    23|      * @param string $filename
    24|      *
    25|      * @return string
    26|      */
  > 27|     protected function getFileContents($filename)
    28|     {
    29|         return $this->fs->get($filename);
    30|     }
    31| 


    "require": {
        "barryvdh/laravel-snappy": "^0.4.4"
   }
    "conflict": {
        "knplabs/knp-snappy": "1.3.0"
    },

Please mark this package as conflicts with the other two one or fix this bug :)

Hello,
Sorry for the inconvenience, it skipped my checks. I'm gonna fix it and release a new tag.

I think I'll be able to fix it this afternoon, I'll release a new tag right away then 😉

@williamdes I just released a new tag, let me know if the issue still occurs 😉

@williamdes I just released a new tag, let me know if the issue still occurs wink

Seems to be fixed, composer update ran correctly

Cool, sorry again!

Cool, sorry again!

No worries, the CI did catch it and nothing got deployed ;)
Thanks for the very quick fix !

So I don't have to change anything on my end?

Nope 😉