Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP notice when yielding anonymous classes implementing interface with trait in source code #423

Closed
schodemeiss opened this issue Aug 4, 2017 · 1 comment · Fixed by #424

Comments

@schodemeiss
Copy link
Contributor

schodemeiss commented Aug 4, 2017

I'm getting the same issue as #390 even in 2.0.10 where it's declared as fixed?

Specifically, I'm "yielding" an anonymous class that implements an interface which is honoured by a trait.

@schodemeiss
Copy link
Contributor Author

schodemeiss commented Aug 4, 2017

Example:

yield new class($input) implements MyInterface {
    use HasTrait;

    public function __construct($input)
    {
        $this->input = $input;
    }
};

@schodemeiss schodemeiss changed the title PHP notice when are using anonymous classes into source code PHP notice when are yielding anonymous classes implementing interface with trait in source code Aug 4, 2017
@schodemeiss schodemeiss changed the title PHP notice when are yielding anonymous classes implementing interface with trait in source code PHP notice when yielding anonymous classes implementing interface with trait in source code Aug 4, 2017
bfanger pushed a commit that referenced this issue Aug 9, 2017
* Update php7.php

* Update StaticAnalyser.php

* Update StaticAnalyser.php
bfanger added a commit that referenced this issue Aug 16, 2017
- Implemented Swagger->ref(). $swagger->ref('#/info/contact') === $swagger->info->contact
- Added validation of internal refs.
- Misc typos and improved unittests #357, #399, #402, #407, #423, #424
- Misc improvements to the documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant