This file is indexed.

/usr/share/php/PhpParser/Node/Expr/Closure.php is in php-parser 1.0.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<?php

namespace PhpParser\Node\Expr;

use PhpParser\Node;
use PhpParser\Node\Expr;

/**
 * @property Node[]       $stmts  Statements
 * @property Node\Param[] $params Parameters
 * @property ClosureUse[] $uses   use()s
 * @property bool         $byRef  Whether to return by reference
 * @property bool         $static Whether the closure is static
 */
class Closure extends Expr
{
    /**
     * Constructs a lambda function node.
     *
     * @param array $subNodes   Array of the following optional subnodes:
     *                          'static' => false  : Whether the closure is static
     *                          'byRef'  => false  : Whether to return by reference
     *                          'params' => array(): Parameters
     *                          'uses'   => array(): use()s
     *                          'stmts'  => array(): Statements
     * @param array $attributes Additional attributes
     */
    public function __construct(array $subNodes = array(), array $attributes = array()) {
        parent::__construct(
            array(
                'static' => isset($subNodes['static']) ? $subNodes['static'] : false,
                'byRef'  => isset($subNodes['byRef'])  ? $subNodes['byRef']  : false,
                'params' => isset($subNodes['params']) ? $subNodes['params'] : array(),
                'uses'   => isset($subNodes['uses'])   ? $subNodes['uses']   : array(),
                'stmts'  => isset($subNodes['stmts'])  ? $subNodes['stmts']  : array(),
            ),
            $attributes
        );
    }
}