type-assert icon indicating copy to clipboard operation
type-assert copied to clipboard

3.18 Breaks things :(

Open HRMsimon opened this issue 9 years ago • 4 comments

File "/builds/HRMWEB/easyEMPLOYER/vendor/fredemmott/type-assert/src/TypeAssert.php", line 81, characters 9-30:
'instanceof' cannot be used on a generic classname because types are erased at runtime (Typing[4162])

I just added // UNSAFE in the method, but you may have a nicer way of doing it (like a FIXME, I was just lazy). Was hoping that Hack would've been fixed before the release, but apparently not.

HRMsimon avatar Feb 15 '17 02:02 HRMsimon

Fix will be tagged once travis finishes :)

fredemmott avatar Feb 15 '17 02:02 fredemmott

https://github.com/fredemmott/type-assert/commit/38460b438ca85701585abe471d944c678d242847

fredemmott avatar Feb 15 '17 02:02 fredemmott

A wild v1.1 appears - it's super effective!

fredemmott avatar Feb 15 '17 02:02 fredemmott

Hooray! :)

HRMsimon avatar Feb 15 '17 02:02 HRMsimon