note 113257 added to language.oop5.typehinting

From: Date: Wed, 18 Sep 2013 17:26:06 +0000
Subject: note 113257 added to language.oop5.typehinting
Groups: php.notes 
Request: Send a blank email to php-notes+get-196299@lists.php.net to get a copy of this message
No type hinting for scalar values? Isn't that the most common use? I'm really astonished I cannot do this in PHP: class Student extends Person { public function getStudent(int id){ /* ... you can't use int type hints ... not quite C#... */ } } ---- Server IP: 69.147.83.199 Probable Submitter: 76.237.157.122 ---- Manual Page -- http://php.net/manual/en/language.oop5.typehinting.php Edit -- https://master.php.net/note/edit/113257 Del: integrated -- https://master.php.net/note/delete/113257/integrated Del: useless -- https://master.php.net/note/delete/113257/useless Del: bad code -- https://master.php.net/note/delete/113257/bad+code Del: spam -- https://master.php.net/note/delete/113257/spam Del: non-english -- https://master.php.net/note/delete/113257/non-english Del: in docs -- https://master.php.net/note/delete/113257/in+docs Del: other reasons-- https://master.php.net/note/delete/113257 Reject -- https://master.php.net/note/reject/113257 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196299) next »