Why does my constant integer type convert to string?

php

Solution

You have to access these constants using `self::`, so for TYPE_ANNIVERSARY_LIST it would be `self::TYPE_ANNIVERSARY_LIST`

Problem

I have these constants defined in my PHP class: ``` const TYPE_UNDEFINED = -1; const TYPE_ANNIVERSARY_LIST = 1; const TYPE_NEW_HIRE_LIST = 2; const TYPE_EMPLOYEE_BY_NUMS = 3; const TYPE_MANUAL_LIST = 9; ``` I noticed my code was not acting the way I expected, so I did some debugging. It turns out, PHP is converting these to String values. I can force them to be Integer types by using `define()`, but why isn't this working? We are running PHP Version 5.3.10, so `const` should be fine.

Original source