Skip to content

0.1.3

Latest

Choose a tag to compare

@sfkelseylee sfkelseylee released this 03 Jun 09:29

Bug fixes release

Fixed

  • TypeError when parsing nested objects from charger responses — json_decode produces arrays, but CallResult/Call properties typed ?object rejected them on PHP 8.2+. Properties are now auto-coerced via reflection.
  • PropertyConstraintViolationError had wrong class name — was declaring NotImplementedError (copy-paste bug). Now correctly declares PropertyConstraintViolationError.

Added

  • CallError::fromArray() — parse incoming [4, uniqueId, errorCode, ...] messages into the correct CallError subclass. Maps all 12 OCPP error codes.
  • JsonSchemaValidator now handles CallError — validates structural integrity (errorCode, errorDescription, errorDetails) instead of skipping silently.
  • JsonSchemaRegistry::createFromArray() now supports message type 4 (CallError).

Full Changelog: 0.1.2...0.1.3