From bea58f82ad360ef5486ab2a744625ba7422fdd95 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Tue, 8 Sep 2015 16:45:48 +0000 Subject: [PATCH] Closure::bind() doesn't allow to bind to scope of internal classes anymore (fixes #69811) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337785 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/predefined/closure/bind.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/language/predefined/closure/bind.xml b/language/predefined/closure/bind.xml index cc9037374e..596c911a50 100644 --- a/language/predefined/closure/bind.xml +++ b/language/predefined/closure/bind.xml @@ -53,6 +53,7 @@ 'static' to keep the current one. If an object is given, the type of the object will be used instead. This determines the visibility of protected and private methods of the bound object. + It is not allowed to pass (an object of) an internal class as this parameter. @@ -66,6 +67,31 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 7.0.0 + + newscope can not be (an object of) an internal + class anymore, what was possible prior to this version. + + + + + + + + &reftitle.examples;