Fix method to add PHP 5.6 support

Changed usage function to a public static function for PHP 5.6 compatibility.

Methods called from an incompatible context are now deprecated, and will generate E_DEPRECATED errors when invoked instead of E_STRICT. Support for these calls will be removed in a future version of PHP. 

http://php.net/manual/en/migration56.deprecated.php