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

Wrong namespace resolution with 0.12.38 #3776

Closed
sirbaconjr opened this issue Aug 24, 2020 · 3 comments
Closed

Wrong namespace resolution with 0.12.38 #3776

sirbaconjr opened this issue Aug 24, 2020 · 3 comments

Comments

@sirbaconjr
Copy link

Bug report

I'm using nunomaduro/larastan, my phpstan/phpstan version was 0.12.38 and I got the following bug with namespace resolution.

------ ------------------------------------------------------------------ 
  Line   Domains/Mongo/MongoManager.php                                    
 ------ ------------------------------------------------------------------ 
  139    Method App\Domains\Mongo\MongoManager::executeBulkWrite() should  
         return MongoDB\Driver\WriteResult but returns                     
         _HumbugBoxadd759dbc574\MongoDB\Driver\WriteResult.                
  139    Parameter #2 $bulk of method                                      
         MongoDB\Driver\Manager::executeBulkWrite() expects                
         _HumbugBoxadd759dbc574\MongoDB\Driver\BulkWrite,                  
         MongoDB\Driver\BulkWrite given.                                   
 ------ ------------------------------------------------------------------

Solution for me was to rollback to version 0.12.37.

Code snippet that reproduces the problem

I managed to get a similar bug inside phpstan.org

https://phpstan.org/r/e1dde1d7-a8bb-4568-93d2-3cddcb814172

Expected output

No Errors!

@ondrejmirtes
Copy link
Member

Fixed, thank you! phpstan/phpstan-src@79bae4b

Will release 0.12.39 shortly.

@ondrejmirtes
Copy link
Member

And released :) https://github.com/phpstan/phpstan/releases/tag/0.12.39

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants