Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Add Data typehing to Template::set() for $value parameter #36

Closed
@pinepain

Description

@pinepain

This changes is BC compatible.

Template::set() $value could be one of PrimitiveValue or Template instance. Both of them extends meta-class Data. While there is already an internals type check for that, restricting $value to accept only Data instances will improve overall method interface and allow users to catch type errors early.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions