Welcome to mirror list, hosted at ThFree Co, Russian Federation.

class_with_method_that_declares_anonymous_class.php « _fixture « tests « php-token-stream « phpunit « vendor - github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a02fe13c37a2e1f746f34c7f925827121bc363f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
interface foo {
}

class class_with_method_that_declares_anonymous_class
{
    public function method()
    {
        $o = new class { public function foo() {} };
        $o = new class{public function foo(){}};
        $o = new class extends stdClass {};
        $o = new class extends stdClass {};
        $o = new class implements foo {};
    }
}