Current File : /var/www/vinorea/modules/psxdesign/vendor/humbug/php-scoper/specs/use/use-const-group.php
<?php

declare(strict_types=1);

/*
 * This file is part of the humbug/php-scoper package.
 *
 * Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>,
 *                    Pádraic Brady <padraic.brady@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

return [
    'meta' => [
        'title' => 'Use statements for constants with group statements',
        // Default values. If not specified will be the one used
        'prefix' => 'Humbug',
        'whitelist' => [],
        'whitelist-global-constants' => true,
        'whitelist-global-classes' => false,
        'whitelist-global-functions' => true,
        'registered-classes' => [],
        'registered-functions' => [],
    ],

    <<<'PHP'
<?php

use const A\{B};
use const A\{B\C, D};
use const \A\B\{C\D as ABCD, E};

B;
C;
D;
ABCD;
E;

----
<?php

namespace Humbug;

use const Humbug\A\B;
use const Humbug\A\B\C;
use const Humbug\A\D;
use const Humbug\A\B\C\D as ABCD;
use const Humbug\A\B\E;
\Humbug\A\B;
\Humbug\A\B\C;
\Humbug\A\D;
\Humbug\A\B\C\D;
\Humbug\A\B\E;

PHP
    ,
];