Freezing a composer dependency to a given commit
Published on 2020-12-23 • Modified on 2020-12-23
In this snippet, we will see how to freeze a composer dependency to a given commit. It can be useful sometimes to avoid a bug that was introduced at some point, and you want a version before it appeared. Of course, it should be an exception. Always prefer using tags if possible. So, you must specify the commit after the branch with a hash before.