openactive / models-php

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

Fix payment method validation #88

Closed jameslkingsley closed 2 years ago

jameslkingsley commented 2 years ago

Validator wasn't resolving the fully qualified classname correctly.

jameslkingsley commented 2 years ago

Not sure if this is intentional, but it looks like this line also needs another \: https://github.com/openactive/models-php/blob/master/src/Validators/EnumValidator.php#L55

- strpos($classname, 'OpenActive\Enums\\') !== 0
+ strpos($classname, 'OpenActive\\Enums\\') !== 0