When I call \BarcodeValidator::IsValidUPCA(), I get class \BarcodeValidator not found.
Possible solution
Upon investigation, I found that the class is written in a barcode-validator.php, while usually it should be BarcodeValidator.php for the composer's autoload to work 🤔
I copied the file to BarcodeValidator.php and it gets auto-loaded correctly.
The problem
autoload.php
is included correctly.\BarcodeValidator::IsValidUPCA()
, I get class\BarcodeValidator
not found.Possible solution
barcode-validator.php
, while usually it should beBarcodeValidator.php
for the composer's autoload to work 🤔BarcodeValidator.php
and it gets auto-loaded correctly.