tcpdf-laravel icon indicating copy to clipboard operation
tcpdf-laravel copied to clipboard

How to adds static typing?

Open crescent1 opened this issue 3 years ago • 2 comments

hi, how to add static typing using this package? I tried like this, but it doesn't work.

use Elibyy\TCPDF\Facades\TCPDF as PDF or use PDF

and still giving error message. example:

Call to an undefined static method Elibyy\TCPDF\Facades\TCPDF::SetAutoPageBreak().

the package runs normally but the error message is a little annoying.

crescent1 avatar Oct 19 '21 05:10 crescent1

Hey there, sorry for the delay in the response Are you using auto discovery or have added the provider to the app config?

elibyy avatar Oct 26 '21 09:10 elibyy

Hi, I have added the provider to the app configuration.

Elibyy\TCPDF\ServiceProvider::class,

but i also using this package

nunomaduro/larastan

crescent1 avatar Oct 28 '21 02:10 crescent1