====== Updating Dependencies ====== It is important to update your dependencies to ensure your application doesn't contain any security vulnerabilities, works compatible with the programming language or frameworks you use or just uses the most modern possible code to expand upon. There is a useful tool called [[https://packagist.org|Packagist]] that lets you see the requirements of certain packages that you can search for. It takes this information from each packages composer.json which defines the requirements and version of the package. Not adhering to the version constraints can seem to have no effect, but suddenly break things when a foreign package uses code that your application cannot even run yet. This can lead to really hard to figure out problems, mostly in the form of test suites failing or applications crashing with cryptic errors that are rather hard to figure out. An example for this is the cakephp/cakephp 5.4.4 patch adding code to a test trait that contained PHPUnit 11 syntax. At the time we were only using PHPUnit 10 since it so far didn't have any consequences on us. Updating dependencies can be done either pretty much manually, or using the Composer CLI to require or update dependencies. The manual way is to delete the current composer lock, adjust the version constraints in the composer.json and then reinstalling all the dependencies.