Problem/Motivation
The $schema property is wrongly typed.
Proposed resolution
Fix it.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3325772-3.patch | 788 bytes | andypost |
| #3 | interdiff.txt | 806 bytes | andypost |
| #2 | 3325772-2.patch | 564 bytes | mondrake |
Comments
Comment #2
mondrakeComment #3
andypostI think better to type this properties via native types as we touch the trait
Comment #4
mondrakeLooks good to me but that makes it non portable to 9.5.
Comment #6
catchI went ahead and committed #3 to 10.1.x, and #2 to 10.0.x and 9.5.x. The extra type hinting on a property shouldn't make any different but I wondered what happens if something using the trait sets it to something invalid.
Comment #7
mondrakeTypeError for sure. So +1 better leave (native) type tightening to 10.1.x that is a bit ahead.