<?php

namespace Platformsh\Cli\Command;

trait HasExamplesTrait
{
    /** @var array */
    protected $examples = array();

    /**
     * @param string $description
     * @param string $arguments
     *
     * @return self
     */
    protected function addExample($description, $arguments = '')
    {
        $this->examples[$arguments] = $description;

        return $this;
    }
}

<?php

namespace Platformsh\Cli\Command;

trait HasExamplesTrait
{
    /** @var array */
    protected $examples;

    /**
     * @param string $description
     * @param string $arguments
     *
     * @return self
     */
    protected function addExample($description, $arguments = '')
    {
        $this->examples[$arguments] = $description;

        return $this;
    }
}

--- 
+++ 
@@ -5,7 +5,7 @@
 trait HasExamplesTrait
 {
     /** @var array */
-    protected $examples;
+    protected $examples = array();
 
     /**
      * @param string $description
Fix invalid argument supplied for foreach()
