summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_016.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/closure_016.phpt')
-rw-r--r--Zend/tests/closure_016.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/tests/closure_016.phpt b/Zend/tests/closure_016.phpt
index ae0036586c..0f87f20f43 100644
--- a/Zend/tests/closure_016.phpt
+++ b/Zend/tests/closure_016.phpt
@@ -3,15 +3,15 @@ Closure 016: closures and is_callable()
--FILE--
<?php
class Foo {
- function __invoke() {
- echo "Hello World!\n";
- }
+ function __invoke() {
+ echo "Hello World!\n";
+ }
}
function foo() {
- return function() {
- echo "Hello World!\n";
- };
+ return function() {
+ echo "Hello World!\n";
+ };
}
$test = new Foo;
var_dump(is_callable($test, true, $name));