openactive / models-php

PHP Models for the OpenActive Opportunity and Booking Specifications
MIT License
6 stars 8 forks source link

Class OpenActive\Models\SchemaOrg\ThreeDModel does not comply with psr-4 autoloading standard #84

Open kjlloydie opened 2 years ago

kjlloydie commented 2 years ago

The ThreeDModel class is defined in the file src/Models/SchemaOrg/3DModel.php, which means it doesn't comply with the psr-4 autoloading standard (the class and the file need the same name/path). This warning is subsequently displayed when composer attempts to generated optimized autoload files:

Class OpenActive\Models\SchemaOrg\ThreeDModel located in ./vendor/openactive/models/src/Models/SchemaOrg/3DModel.php does not comply with psr-4 autoloading standard. Skipping.

Given the models are generated, this seems like a problem with the generation script. I'm adding this issue here for reference, and will cross-link it to one in openactive/models-lib.