Permalink
Browse files

Deprecating String::getInstance()

  • Loading branch information...
markstory committed Oct 28, 2009
1 parent 1e7c2bb commit 4bf807b4be5f35faad95f30bd77df01c3cb8d3ac
Showing with 2 additions and 0 deletions.
  1. +2 −0 cake/libs/string.php
View
@@ -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) {

0 comments on commit 4bf807b

Please sign in to comment.