peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 202 forks source link

implicit cast `PhpArray` -> `Dictionary<K,V>` #997

Closed jakubmisek closed 2 years ago

jakubmisek commented 2 years ago

when calling a .NET method accepting Dictionary<> argument, cast PHP array implicitly.

Currently, exception is thrown: image

jakubmisek commented 2 years ago

dynamic cast at https://github.com/peachpiecompiler/peachpie/commit/a1eae3038b01b1867c67a9b8d6b11e27cf160b05