Home  |  Linux  | Mysql  | PHP  | XML
Date:Fri Feb  3 19:04:29 2012
Subject:[git] presentations.git branch master updated. 8d17b91
The branch, master on presentations.git has been updated
via 8d17b9143548572625d0e1ff5214b926b560a24e (commit)
from dcc7e51555ca49b6129787a57993734e3a8be258 (commit)

http://git.php.net/?p=presentations.git;a=log;h=8d17b9143548572625d0e1ff5214b926b560a24e;hp=dcc7e51555ca49b6129787a57993734e3a8be258

Summary of changes:
slides/intro/php54_clstatic.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

-- Log ----------------------------------------
commit 8d17b9143548572625d0e1ff5214b926b560a24e
Author: Rasmus Lerdorf <rasmus@php.net>
Date: Fri Feb 3 13:58:08 2012 -0500

static was on the wrong function there

diff --git a/slides/intro/php54_clstatic.xml b/slides/intro/php54_clstatic.xml
index 0994bf6..a72a91c 100644
--- a/slides/intro/php54_clstatic.xml
+++ b/slides/intro/php54_clstatic.xml
@@ -7,8 +7,8 @@ class Foo {
function __construct($prop) {
$this->prop = $prop;
}
- public static function getPrinter() {
- return function() { echo ucfirst($this->prop); };
+ public function getPrinter() {
+ return static function() { echo ucfirst($this->prop); };
}
}


Thank you for your contribution.
Navigate in group php.pres at sever news.php.net
Previous Next





  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants