diff options
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/closures/closure_from_callable.inc | 26 | ||||
-rw-r--r-- | Zend/tests/list_keyed_evaluation_order.inc | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/Zend/tests/closures/closure_from_callable.inc b/Zend/tests/closures/closure_from_callable.inc index 5f0f220974..22a1fa9930 100644 --- a/Zend/tests/closures/closure_from_callable.inc +++ b/Zend/tests/closures/closure_from_callable.inc @@ -26,7 +26,7 @@ class Foo { return $param1; } - + private static function privateStaticFunction($param1) { return $param1; @@ -41,18 +41,18 @@ class Foo { return $param1; } - + protected function protectedInstanceFunc($param1) { return $param1; } - - + + public function publicInstanceFunc($param1) { return $param1; } - + public function closePrivateValid() { return Closure::fromCallable([$this, 'privateInstanceFunc']); @@ -87,23 +87,23 @@ class Foo class SubFoo extends Foo { - + public function closePrivateStaticInvalid() { return Closure::fromCallable([__CLASS__, 'privateStaticFunction']); } - - + + public function closePrivateInvalid() { return Closure::fromCallable([$this, 'privateInstanceFunc']); } - + public function closeProtectedStaticMethod() { return Closure::fromCallable([__CLASS__, 'protectedStaticFunction']); } - + public function closeProtectedValid() { return Closure::fromCallable([$this, 'protectedInstanceFunc']); @@ -113,13 +113,13 @@ class SubFoo extends Foo { { return Closure::fromCallable('parent::publicInstanceFunc'); } - + public function getSelfColonParentPublicInstanceMethod() { return Closure::fromCallable('self::publicInstanceFunc'); } - - + + public function getSelfColonParentProtectedInstanceMethod() { return Closure::fromCallable('self::protectedInstanceFunc'); diff --git a/Zend/tests/list_keyed_evaluation_order.inc b/Zend/tests/list_keyed_evaluation_order.inc index 490a6d84fe..d4ee778b63 100644 --- a/Zend/tests/list_keyed_evaluation_order.inc +++ b/Zend/tests/list_keyed_evaluation_order.inc @@ -47,7 +47,7 @@ class IndexableRetrievable { private $label; private $indexable; - + public function __construct(string $label, Indexable $indexable) { $this->label = $label; $this->indexable = $indexable; |