Skip to content

Commit

Permalink
Deprecating String::getInstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 28, 2009
1 parent 1e7c2bb commit 4bf807b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cake/libs/string.php
Expand Up @@ -34,8 +34,10 @@ class String {
* @return object String instance
* @access public
* @static
* @deprecated
*/
function &getInstance() {
trigger_error('String::getInstance() is deprecated. All String methods are called statically.', E_USER_WARNING);
static $instance = array();

if (!$instance) {
Expand Down

0 comments on commit 4bf807b

Please sign in to comment.