From ae218ccd6ac3cd7628bdd444d9ddee48302f54bc Mon Sep 17 00:00:00 2001 From: Brett Bieber Date: Wed, 1 Apr 2009 18:37:02 +0000 Subject: [PATCH] correct minor spelling errors git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278136 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/exceptions.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/language/exceptions.xml b/language/exceptions.xml index 856b6bb8ae..4659577dd2 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -1,5 +1,5 @@ - + Exceptions @@ -136,10 +136,10 @@ class Exception final function getFile(); // source filename final function getLine(); // source line final function getTrace(); // an array of the backtrace() - final function getTraceAsString(); // formated string of trace + final function getTraceAsString(); // formatted string of trace /* Overrideable */ - function __toString(); // formated string for display + function __toString(); // formatted string for display } ?> ]]> @@ -147,11 +147,11 @@ class Exception If a class extends the built-in Exception class and re-defines the constructor, it is highly recomended + linkend="language.oop5.decon">constructor, it is highly recommended that it also call parent::__construct() to ensure all available data has been properly assigned. The __toString() method can be overriden + linkend="language.oop5.magic">__toString() method can be overridden to provide a custom output when the object is presented as a string. @@ -178,7 +178,7 @@ class MyException extends Exception } public function customFunction() { - echo "A Custom function for this type of exception\n"; + echo "A custom function for this type of exception\n"; } }