No Hack typechecker coverage for PHP functions

91 views Asked by At

I have written a fair bit of code in Hack, but the typechecker manages to surprise me.

For example, the IDE complains on these two lines:

The first clearly uses a string array and the second clearly returns an integer. Yet, the Nuclide IDE dives me this very unhelpful error message:

"Un-type checked code. Consider adding annotations."

Is this a bug / missing functionality in the typechecker or am I doing something wrong?

0

There are 0 answers