fbpx

Categoria PHP

Composer conflict, how can we use it?

Today I found a very useful Composer schema package link option named conflict, which is useful when third-party code you rely on is too permissive for your needs. At the time of writing, the conflict man page states Lists packages…

PHP tip: array_diff an array of objects

That’s tricky! Let’s assume we have two arrays like these: [crayon-5fc6aa4dd2392831420474/] Looking at these few lines I would expect that those two arrays are different but if we compare them with php array_diff function they’re the same: [crayon-5fc6aa4dd2396721480155/] This happens…