#30126 [Asn->Csd]: Enhancement for error message for abstract classes

From: Date: Mon, 02 May 2005 16:14:39 +0000
Subject: #30126 [Asn->Csd]: Enhancement for error message for abstract classes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78528@lists.php.net to get a copy of this message
ID: 30126 Updated by: helly@php.net Reported By: mfischer@php.net -Status: Assigned +Status: Closed Bug Type: Feature/Change Request Operating System: All -PHP Version: 5.0.1 +PHP Version: 5.0.4 Assigned To: helly New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-09-17 09:09:00] mfischer@php.net Description: ------------ When class 'B' extends another class 'A' which is declared abstract but does not implement all the methods, the error message is: Fatal Error: Class B contains 1 abstract methods and must therefore be declared abstract (A::sampleMethod) in .... Two things: 1) It would be nice to account for singularity of the word method if only one method is missing 2) It would be nice to also tell the user that he can also implement the remaining methods: Fatal Error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::sampleMethod) in .... Just sugar, but anyway ;) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30126&edit=1

« previous php.bugs (#78528) next »