Update ObjectDependenciesDescription.php#18
Update ObjectDependenciesDescription.php#18giorgiopogliani wants to merge 1 commit intota-tikoma:mainfrom
Conversation
Fixing error: Typed property PHPUnit\Architecture\Asserts\Dependencies\ObjectDependenciesDescription::$uses must not be accessed before initialization
|
@giorgiopogliani can you write an example here to reproduce this error? please |
|
I was using pestphp/pest on a laravel project, setting up arch tests cause this error if some packages are installed. In pestphp/pest repo they closed the issue shifting the blame on the packages, but with the chages I am proposing all my tests suite was fixed. i am not sure the root cause of the error and why some packages installed cause this and other packages don't. If you want to replicate the error with one of the dep I found you can with these steps:
|
|
@giorgiopogliani I try to fix it pestphp/pest-plugin-arch#22 |
I had the same exact error and applying your snippet fixed the issue Thank you.
|
|
@momostafa , please try v3.1.0 and tell us if you still have the error? |
I will do that. Thank you |
Fixing error: Typed property PHPUnit\Architecture\Asserts\Dependencies\ObjectDependenciesDescription::$uses must not be accessed before initialization