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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nelson at vericel dot com
New email:
PHP Version: OS:

 

 [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: Sun Apr 28 05:01:30 2024 UTC