Array or !Array

I was struggling with a loop check I needed to do.

I needed to find how many of occurrences there where based on some key info that had to be unique.

$eyeColors = [];

foreach ($list as $listItem) {
    $key = $listItem->eyeColor;
    if (!array_key_exists($key, $eyeColors)) {
        $eyeColors[$key] = array_push($eyeColors, $listItem)
  } 
}

Learned this from @mortenbergset

Conference

I was fortunate to have the change to attend PHP UK 2019.
My employer sent 5 developers this year. This is to get new ideas and teambuilding, we all got a gray hoodie with the local PHP meetup group logo. The purpose was to have something to talk about, be easily seen and try to make new friends.

This is the talks I went to:

Some of the key takeaways was testing and reporting.

Links: https://hub.docker.com/r/adamculp/php-code-quality
https://hub.docker.com/r/adamculp/php-compatibility-check
https://codeception.com/quickstart
https://infection.github.io/guide/