DonaldWinston I'm using the class TCPDF (/tecnickcom/tcpdf/tcpdf.php) in CodeIgniter4. It does not use a namespace. An Fpdi class(/setasign/fpdi/src/Tcpdf/Fpdi.php) extends TCPDF. It does use a namespace. VSCode is giving me warnings about unknown properties and methods that are in the TCPDF class. Is there any way to help InteliiSense out so I get genuine warnings? Everything is installed in the vendor directory. I've got this in my workspace.
JakubMisek DonaldWinston, thank you for posting the question. The namespace is not a problem. But I can't find the declaration of class TCPDF itself (looking at the code at https://github.com/Setasign/FPDI/blob/master/src/Tcpdf/Fpdi.php) Do you have a hint where it is declared? Do you see the class information if you hover mouse over \TCPDF at line 37?
DonaldWinston I get "Use of unknown class" when I hover over \TCPDF on line 37: class Fpdi extends \TCPDF { use FpdiTrait { writePdfType as fpdiWritePdfType; useImportedPage as fpdiUseImportedPage; }
DonaldWinston Ohhh. The vendor/technickcom/tcpdf.php class was missing. I don't know composer did. Sorry. It is working as expected now.