"Ambiguous class resolution" Warnings Using Composer
PHP class for PDF
Brought to you by:
nicolaasuni
We are getting warnings in Composer when using this library:
Warning: Ambiguous class resolution, "TCPDF_COLORS" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_colors.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_colors.php", the first will be used.
Warning: Ambiguous class resolution, "TCPDF_FILTERS" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_filters.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_filters.php", the first will be used.
Warning: Ambiguous class resolution, "TCPDF_FONT_DATA" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_font_data.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_font_data.php", the first will be used.
Warning: Ambiguous class resolution, "TCPDF_FONTS" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_fonts.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_fonts.php", the first will be used.
Warning: Ambiguous class resolution, "TCPDF_IMAGES" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_images.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_images.php", the first will be used.
Warning: Ambiguous class resolution, "TCPDF_STATIC" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_static.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/tcpdf_static.php", the first will be used.
Warning: Ambiguous class resolution, "Datamatrix" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/barcodes/datamatrix.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/barcodes/datamatrix.php", the first will be used.
Warning: Ambiguous class resolution, "PDF417" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/barcodes/pdf417.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/barcodes/pdf417.php", the first will be used.
Warning: Ambiguous class resolution, "QRcode" was found in both "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/barcodes/qrcode.php" and "/home/myuser/myproject/vendor/tecnick.com/tcpdf/include/barcodes/qrcode.php", the first will be used.
Can y'all take a look? I think there are ambiguous references in the composer.json.
From what I saw over in the composer issues, the files are being included once by name and once by directory.
https://github.com/composer/composer/issues/4195#issuecomment-116639476