<?php $str = '/** @var string[] */ /** @return string[] */ * @param Company[]|null $companies $icons[] = static::getIconDetailsFromLink($link); $this->properties[] = $property;'; if (preg_match_all('/\b(?<!\$|->)\w+\[]/', $str, $matches)) { print_r($matches); }
You have javascript disabled. You will not be able to edit any code.