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

Reproduce deprecation warning #8612

Closed
wants to merge 3 commits into from
Closed

Reproduce deprecation warning #8612

wants to merge 3 commits into from

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Dec 29, 2022

the warning we want to reproduce is


 -- --------------------------------------------------------------------------- 
     Error                                                                      
 -- --------------------------------------------------------------------------- 
     Internal error: Internal error:                                            
     RecursiveDirectoryIterator::__construct(/home/runner/work/phpstan/phpstan  
     /e2e/bug8610b/classes): Failed to open directory:                          
     "PHPStan\Reflection\BetterReflection\SourceLocator\FileReadTrapStreamWrap  
     per::dir_opendir" call failed in file                                      
     /home/runner/work/phpstan/phpstan/e2e/bug8610b/trigger-autoload.php        
     Run PHPStan with -v option and post the stack trace to:                    
     https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md       
     Child process error (exit code 1): PHP Deprecated:  
     
     Creation of dynamic    
     property                                                                   
     PHPStan\Reflection\BetterReflection\SourceLocator\FileReadTrapStreamWrapp  
     er::$context is deprecated in                                              
     /home/runner/work/phpstan/phpstan/e2e/bug8610b/autoloader.php on line 4    
     
     Deprecated: Creation of dynamic property                                   
     PHPStan\Reflection\BetterReflection\SourceLocator\FileReadTrapStreamWrapp  
     er::$context is deprecated in                                              
     /home/runner/work/phpstan/phpstan/e2e/bug8610b/autoloader.php on line 4    
                                                                                
 -- --------------------------------------------------------------------------- 

@staabm staabm marked this pull request as ready for review December 29, 2022 16:12
@staabm
Copy link
Contributor Author

staabm commented Dec 29, 2022

ok, running the test with php 8.2 revealed the warning for phpstan/phpstan-src#2153

@staabm
Copy link
Contributor Author

staabm commented Dec 29, 2022

combined into #8613 (it was the same test, just run on a different php version)

@staabm staabm closed this Dec 29, 2022
@staabm staabm deleted the 8610b_2 branch December 29, 2022 18:57
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 this pull request may close these issues.

None yet

1 participant