maximaster/array-unique-shim This library fixes bug in array_unique(): php/doc-en#1463. composer require maximaster/array-unique-shim then use Maximaster\PhpShim\array_unique function in your code instead of default array_unique.