~ubuntu-branches/ubuntu/wily/php-codesniffer/wily-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-2.3.2/CodeSniffer/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc

  • Committer: Package Import Robot
  • Author(s): David Prévot, Greg Sherwood
  • Date: 2015-06-24 13:41:36 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150624134136-dv60dnl6s20tdxwr
Tags: 2.3.3-1
[ Greg Sherwood ]
Prepare for 2.3.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
namespace bug;
3
 
 
4
 
use
5
 
    someNS\A;
6
 
use someNS\B;
7
 
class Bug
8
 
{
9
 
    public function __construct()
10
 
    {
11
 
        $b = 1;
12
 
        $a = function () use ($b) {
13
 
            echo $b;
14
 
        };
15
 
    }
16
 
}