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

byRef.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: 1c1669c1074a4266e60da5c52c68b70ee5a12688 (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
Return and pass by ref
-----
<?php

function a(&$b) {}
function &a($b) {}
-----
array(
    0: Stmt_Function(
        byRef: false
        name: a
        params: array(
            0: Param(
                type: null
                byRef: true
                variadic: false
                name: b
                default: null
            )
        )
        returnType: null
        stmts: array(
        )
    )
    1: Stmt_Function(
        byRef: true
        name: a
        params: array(
            0: Param(
                type: null
                byRef: false
                variadic: false
                name: b
                default: null
            )
        )
        returnType: null
        stmts: array(
        )
    )
)