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

Confusing phpstan errors #207

Closed
ramsey opened this issue Jan 20, 2018 · 4 comments
Closed

Confusing phpstan errors #207

ramsey opened this issue Jan 20, 2018 · 4 comments
Labels

Comments

@ramsey
Copy link
Owner

ramsey commented Jan 20, 2018

In the 4.x branch, phpstan is emitting the following errors:

14.08s$ composer run phpstan
> phpstan analyse -c phpstan.neon src --level 2 --no-progress
 [OK] No errors                                                                 
> phpstan analyse -c phpstan-tests.neon tests --level 2 --no-progress
 ------ ------------------------------------------------------------------------- 
  Line   tests/src/Converter/Time/DegradedTimeConverterTest.php                   
 ------ ------------------------------------------------------------------------- 
         Class Ramsey\Uuid\Test\Converter\Time\DegradedTimeConverterTest was not  
         found while trying to analyse it - autoloading is probably not           
         configured properly.                                                     
 ------ ------------------------------------------------------------------------- 
 ------ ------------------------------------------------------------------------- 
  Line   tests/src/Validator/ValidatorTest.php                                    
 ------ ------------------------------------------------------------------------- 
         Class Ramsey\Uuid\Test\Validator\ValidatorTest was not found while       
         trying to analyse it - autoloading is probably not configured properly.  
 ------ ------------------------------------------------------------------------- 
 [ERROR] Found 2 errors                                                         
Script phpstan analyse -c phpstan-tests.neon tests --level 2 --no-progress handling the phpstan event returned with error code 1

See here: https://travis-ci.org/ramsey/uuid/builds/331056453

I don't know enough about phpstan to understand what is going on or why these errors are occurring. These test files are no longer at these locations. I moved them a while back, so I'm not sure why it's trying to do anything with them.

@ramsey ramsey added the bug label Jan 20, 2018
@ramsey
Copy link
Owner Author

ramsey commented Jan 20, 2018

@mhujer, since you contributed the phpstan PR, can you take a look at this and see what's going on? Thanks!

@mhujer
Copy link
Contributor

mhujer commented Jan 20, 2018

@ramsey I'm afraid that something went wrong during the rebase, the files are actually there (as PHPStan says):

image

@mhujer
Copy link
Contributor

mhujer commented Jan 20, 2018

I think that something else also went wrong during the rebase. I've pushed to original 4.x branch to my fork https://github.com/mhujer/uuid/commits/4.x-before-rebase-2018-01-19 You can fetch it and compare it with the current 4.x.

I've created #208 which fixes some parts of the diff between old and new 4.x.

@ramsey
Copy link
Owner Author

ramsey commented Jan 20, 2018

Thanks. I’ll take a look at your PR. I also did a diff on the old 4.x and the new, and I didn’t see anything missing, but those files could have sneaked by.

That’s what I get for trying to clean things up. 😁

SignpostMarv added a commit to SignpostMarv/uuid that referenced this issue Jan 27, 2018
@ramsey ramsey closed this as completed Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants