Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

No classes found when functions are imported #64

Closed
sebastianbergmann opened this issue Feb 27, 2017 · 0 comments
Closed

No classes found when functions are imported #64

sebastianbergmann opened this issue Feb 27, 2017 · 0 comments
Assignees
Labels

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Feb 27, 2017

Foo.php

<?php
namespace vendor;

use function printf;

class Foo
{
    public function bar()
    {
        return true;
    }
}
require __DIR__ . '/vendor/autoload.php';

$ts = new PHP_Token_Stream('Foo.php');

print count($ts->getClasses());
0
@sebastianbergmann sebastianbergmann changed the title No classes found when functions are imported using use No classes found when functions are imported Feb 27, 2017
@sebastianbergmann sebastianbergmann self-assigned this Feb 27, 2017
sebastianbergmann added a commit that referenced this issue Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant