You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.phpis included correctly.\BarcodeValidator::IsValidUPCA(), I get class\BarcodeValidatornot found.Possible solution
barcode-validator.php, while usually it should beBarcodeValidator.phpfor the composer's autoload to work 🤔BarcodeValidator.phpand it gets auto-loaded correctly.