php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76949 ReflectionType::__toString() not marked as deprecated
Submitted: 2018-09-29 19:36 UTC Modified: 2018-09-29 21:29 UTC
From: nikic@php.net Assigned: cmb (profile)
Status: Closed Package: Reflection related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2018-09-29 19:36 UTC] nikic@php.net
Description:
------------
The ReflectionType::__toString() has been deprecated in PHP 7.1 in favor of ReflectionNamedType::getName().

Due to some technical issues the method is not marked as deprecated in php-src, however it should be marked as deprecated in the documentation. See also this comment in the source code: https://github.com/php/php-src/blob/03ba053af0240daeff9fbde4d37de2565df65429/ext/reflection/php_reflection.c#L6521


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-29 21:28 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=345735
Log: Fix #76949: ReflectionType::__toString() not marked as deprecated
 [2018-09-29 21:29 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-09-29 21:29 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=c5971e972a89c151ff1455853fdc41c19483788c
Log: Fix #76949: ReflectionType::__toString() not marked as deprecated
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 21:01:32 2024 UTC