note 120014 added to reflectionclass.isabstract

From: Date: Mon, 10 Oct 2016 12:06:38 +0000
Subject: note 120014 added to reflectionclass.isabstract
Groups: php.notes 
Request: Send a blank email to php-notes+get-206825@lists.php.net to get a copy of this message
For interfaces and traits : <?php interface TestInterface { } trait TestTrait { } $interfaceClass = new ReflectionClass('TestInterface'); $traitClass = new ReflectionClass('TestTrait'); var_dump($interfaceClass->isAbstract()); var_dump($traitClass->isAbstract()); ?> Using PHP versions 5.4- to 5.6, the above example will output: bool(false) bool(true) Using PHP versions 7.0+, the above example will output: bool(false) bool(false) ---- Server IP: 72.52.91.14 Probable Submitter: 2001:41d0:fe87:b000:a0a6:e34e:51fc:6453 ---- Manual Page -- http://php.net/manual/en/reflectionclass.isabstract.php Edit -- https://master.php.net/note/edit/120014 Del: integrated -- https://master.php.net/note/delete/120014/integrated Del: useless -- https://master.php.net/note/delete/120014/useless Del: bad code -- https://master.php.net/note/delete/120014/bad+code Del: spam -- https://master.php.net/note/delete/120014/spam Del: non-english -- https://master.php.net/note/delete/120014/non-english Del: in docs -- https://master.php.net/note/delete/120014/in+docs Del: other reasons-- https://master.php.net/note/delete/120014 Reject -- https://master.php.net/note/reject/120014 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206825) next »