com doc/fr: Apply commit 46efcedd4ab2dee962eb80c7fbd552252581225b: language/exceptions.xml

[email protected] (George Peter Banyard) Wed, 17 Feb 2021 03:51:56 +0000
Newsgroups php.doc.fr
Message-ID <[email protected]>
Commit:    894baf38706eadf8c30bcba33b42289699006dd7
Author:    George Peter Banyard <[email protected]>         Wed, 17 Feb 2021 03:51:56 +0000
Parents:   a65539b13db351ef21c79cd53fea6b2ad2f0b9fd
Branches:  master

Link:       http://git.php.net/?p=doc/fr.git;a=commitdiff;h=894baf38706eadf8c30bcba33b42289699006dd7

Log:
Apply commit 46efcedd4ab2dee962eb80c7fbd552252581225b

Allow Throwable for  param

Changed paths:
  M  language/exceptions.xml


Diff:
diff --git a/language/exceptions.xml b/language/exceptions.xml
index 413474a218..5abfb2d2ea 100644
--- a/language/exceptions.xml
+++ b/language/exceptions.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 1d58f726462a821d3f926fb61247357f49fa1ce5 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 46efcedd4ab2dee962eb80c7fbd552252581225b Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->
 
  <chapter xml:id="language.exceptions" xmlns="http://docbook.org/ns/docbook">
@@ -29,7 +29,7 @@ class Exception extends Throwable
   private   $trace;                         // backtrace
   private   $previous;                      // exception précédente (depuis PHP 5.3)
 
-  public function __construct($message = null, $code = 0, Exception $previous = null);
+  public function __construct($message = null, $code = 0, Throwable $previous = null);
 
   final private function __clone();         // Inhibe le clonage des exceptions.
 
@@ -41,7 +41,7 @@ class Exception extends Throwable
   final public function getPrevious();             // exception précédente (depuis PHP 5.3)
   final public function getTraceAsString();        // chaîne formatée de trace
 
-  // Remplacable
+  // Remplaçable
   public function __toString();                    // chaîne formatée pour l'affichage
 }
 ?>
@@ -79,7 +79,7 @@ class Exception extends Throwable
 class MyException extends Exception
 {
   // Redéfinissez l'exception ainsi le message n'est pas facultatif
-  public function __construct($message, $code = 0, Exception $previous = null) {
+  public function __construct($message, $code = 0, Throwable $previous = null) {
 
     // traitement personnalisé que vous voulez réaliser ...