symfony/symfony — comment on commit d02f17268ecd2aed4730d4eb557733d5e038ed2e
File: tests/Symfony/Tests/Component/Form/Extension/Core/EventListener/MergeCollectionListenerCustomArrayObjectTest.php line 24
By canni:

Typecast (if not null) is done in typehint, so initialize code does not need to typecast again, just check simplified check `if (null === $array) $this->array = array();`