Skip to content

Autoload not working #7

@jigarius

Description

@jigarius

The problem

  • I installed the library with composer.
  • Composer's autoload.php is included correctly.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions