php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11615 change/modify parent syntax
Submitted: 2001-06-22 07:01 UTC Modified: 2010-11-24 13:42 UTC
From: nelson at vericel dot com Assigned: jani (profile)
Status: Closed Package: Class/Object related
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
 [2001-06-22 07:01 UTC] nelson at vericel dot com
it would be nice if the parent syntax was extended so that the parent class constructor could be referenced with

parent::parent()


This way, when a subclass wants to call the parent constructor, it can, without referring to the class.  This makes current documentation more "true" in that it is more possible to chance the inheritance tree without breaking things.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 13:42 UTC] jani@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: Class/Object related -Assigned To: +Assigned To: jani
 [2010-11-24 13:42 UTC] jani@php.net
parent::__construct() is possible nowadays..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 07:01:31 2024 UTC