Fix case sensitivity for class methods.

This matches PHP's documentation for ReflectionClass.

Fixes #1624.