PHP 8.1 Syntax Showcase ####################### :category: PHP :tags: php 8.1 :date: 2021-11-30 19:37:00 +0200 PHP 8.1 was released when I was suffering from COVID so I'm a bit late. .. code-block:: php error(); } } public function error(): never { $this->logger->error('Error!'); exit; } } $test = new TestTest(); $arr1 = ['a' => new ArrayObject()]; $arr2 = ['b' => new ArrayIterator()]; $result = array_map($test->process(...), [...$arr1, ...$arr2]);