I have file composer.json
and test.php
{
"minimum-stability": "dev",
"require": {
"doctrine/collections": "^2"
}
}
<?php
use Doctrine\Common\Collections\ArrayCollection;
new ArrayCollection();
when I try upgrading the version of doctrine/collections
to 3, I have error Use of unknown class: 'Doctrine\Common\Collections\ArrayCollection'
. it seems the language server doesn't re-index when the package is upgraded.
OS: ubuntu 22.04