for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace Mocktainer;
class ClassWithOptionalArrayInConstructor
{
/** @var \Mocktainer\FooService */
public $fooService;
/** @var mixed[] */
public $options;
/**
* @param \Mocktainer\FooService $fooService
* @param mixed[] $options
*/
public function __construct(FooService $fooService, array $options = [])
$this->fooService = $fooService;
$this->options = $options;
}