[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] remove-attribute-escaping: Restore ReturnTypeWillChange backslashes in deprecatio
From:       Jeremy Mikola <noreply () php ! net>
Date:       2022-08-18 15:57:38
Message-ID: x0QWCO6uNUsFgOl1zwCZhB6fkNIwDChirG4h3oWpzI () main ! php ! net
[Download RAW message or body]

Author: Jeremy Mikola (jmikola)
Date: 2022-08-18T12:01:34-04:00

Commit: https://github.com/php/doc-en/commit/ccfac2ca6c351a3512e484ab696356f7eb68f0b4
Raw diff: https://github.com/php/doc-en/commit/ccfac2ca6c351a3512e484ab696356f7eb68f0b4.diff


Restore ReturnTypeWillChange backslashes in deprecation messages

This reverts to the original changes in 081cf71ecb97b239c1e07beaadb71af0b0c42764, \
which are intentional.

Changed paths:
  M  language/oop5/inheritance.xml


Diff:

diff --git a/language/oop5/inheritance.xml b/language/oop5/inheritance.xml
index 06444722d30..f115a23fa5a 100644
--- a/language/oop5/inheritance.xml
+++ b/language/oop5/inheritance.xml
@@ -136,7 +136,7 @@ class MyDateTime extends DateTime
     public function modify(string $modifier) { return false; }
 }
  
-// "Deprecated: Return type of MyDateTime::modify(string $modifier) should either be \
compatible with DateTime::modify(string $modifier): DateTime|false, or the \
#[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice" \
as of PHP 8.1.0 +// "Deprecated: Return type of MyDateTime::modify(string $modifier) \
should either be compatible with DateTime::modify(string $modifier): DateTime|false, \
or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the \
notice" as of PHP 8.1.0  ?> 
 ]]>
     </programlisting>
@@ -152,7 +152,7 @@ class MyDateTime extends DateTime
     public function modify(string $modifier): ?DateTime { return null; }
 }
  
-// "Deprecated: Return type of MyDateTime::modify(string $modifier): ?DateTime \
should either be compatible with DateTime::modify(string $modifier): DateTime|false, \
or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the \
notice" as of PHP 8.1.0 +// "Deprecated: Return type of MyDateTime::modify(string \
$modifier): ?DateTime should either be compatible with DateTime::modify(string \
$modifier): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used \
to temporarily suppress the notice" as of PHP 8.1.0  ?> 
 ]]>
     </programlisting>

-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic