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

nsAfterHashbang.test « namespace « 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: 6d452538d4cb6a398f9c10d7ad5d4d980f72082c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Hashbang followed by namespace declaration
-----
#!/usr/bin/env php
<?php

namespace A;
-----
array(
    0: Stmt_InlineHTML(
        value: #!/usr/bin/env php

    )
    1: Stmt_Namespace(
        name: Name(
            parts: array(
                0: A
            )
        )
        stmts: array(
        )
    )
)