File "UseDeclarationUnitTest.1.inc"

Full Path: /home/warrior1/public_html/languages/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc
File size: 555 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MyProject;

use BarClass as Bar;
use My\Full\Classname as Another;


use Something;
use SomethingElse;

// Comment here.
use LastThing;

class Foo {
}

$var = new MyClass(
    function () use ($foo, $bar) {
        return true;
    }
);

class Container extends Component implements IContainer
{
    use TContainer;
}

trait HelloWorld
{
    use Hello, World;
}

enum SomeEnum
{
    use Hello, World;
}

$x = $foo ? function ($foo) use /* comment */ ($bar): int {
    return 1;
} : $bar;

// Testcase must be on last line in the file.
use