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

returnTypes.test « function « stmt « parser « code « test « php-parser « nikic « vendor - github.com/nextcloud/php-static-scanner-instrumentalization.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca6c3106e4fc7fec02d7af4088b3cd7441010a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Return type declarations
-----
<?php

function test1() {}
function test2() : array {}
function test3() : callable {}
function test4() : Foo\Bar {}
-----
array(
    0: Stmt_Function(
        byRef: false
        name: test1
        params: array(
        )
        returnType: null
        stmts: array(
        )
    )
    1: Stmt_Function(
        byRef: false
        name: test2
        params: array(
        )
        returnType: array
        stmts: array(
        )
    )
    2: Stmt_Function(
        byRef: false
        name: test3
        params: array(
        )
        returnType: callable
        stmts: array(
        )
    )
    3: Stmt_Function(
        byRef: false
        name: test4
        params: array(
        )
        returnType: Name(
            parts: array(
                0: Foo
                1: Bar
            )
        )
        stmts: array(
        )
    )
)