openactive / models-php

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

Improve type errors #50

Closed nathansalter closed 4 years ago

nathansalter commented 4 years ago

This changes the error message from:

The first argument type does not match any of the declared parameter types (int, null) for "foo"

to

The first argument type does not match any of the declared parameter types (int, null) for "foo" at OrderItem.Position

Which should give a user enough information to find out what particular type is the issue. Fixes #44