Repository: phpDocumentor/phpDocumentor (language: php)

Issue:
Unable to parse file "xxx.php", an error was detected: An array can have only integers or strings as keys
<!-- Provide a general summary of the issue in the Title above -->

I tried to generate the api for https://github.com/TYPO3/typo3 However I get the following error for many classes, for example
```
13:52:57 ALERT     [app]   Unable to parse file "typo3/sysext/core/Classes/Utility/MailUtility.php", an error was detected: An array can have only integers or strings as keys
```

(https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/Utility/MailUtility.php)

And the affected classes do not get rendered


## Expected behavior
<!-- Please describe what you expected to happen here. -->
Render classes containing arrays, ignore unknown definitions


## Actual behavior
<!-- What is happening currently -->
Classes do not get rendered

## Steps to reproduce the problem

0. docker pull phpdoc/phpdoc
1. git clone https://github.com/TYPO3/typo3.git
2. alias phpdoc="docker run --rm -v $(pwd):/data phpdoc/phpdoc:3"
3. phpdoc

## Your environment

Docker

<!--
Include as many relevant details about the environment you experienced the bug in.
Because many issues only occur on a specific code base, please add a link to your project, or attach the project code that is involved to this issue report.
-->

* Version used: 3.0.0-alpha1
* Install method
* PHP version
* Operating system and version (e.g. Ubuntu 20.04, Windows 10):
* Link to your project:
* Attach code that is involved
* ...



Discussion / hints:
I have just attempted to reproduce the scenario but was unable to:

![image](https://user-images.githubusercontent.com/193704/227454623-d2c93f6a-f068-415e-aa95-7bd3cd6c2641.png)

I know about this issue, but I believe it is resolved with the latest version of the TypeResolver library.

Can you pull the latest version of phpDocumentor's docker image (`docker pull phpdoc/phpdoc`) and try again?
@mvriel I filled in the steps to reproduce:

## Steps to reproduce the problem

0. docker pull phpdoc/phpdoc
1. git clone https://github.com/TYPO3/typo3.git
2. cd typo3
3. alias phpdoc="docker run --rm -v $(pwd):/data phpdoc/phpdoc:3"
4. phpdoc

Fix patch:
diff --git a/composer.lock b/composer.lock
index 16a9fcda1..97dbc4028 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1910,7 +1910,7 @@
         },
         {
             "name": "phpdocumentor/json-path",
-            "version": "dev-upgrade/type-resolver",
+            "version": "dev-master",
             "dist": {
                 "type": "path",
                 "url": "incubator/json-path",
@@ -2124,16 +2124,16 @@
         },
         {
             "name": "phpdocumentor/type-resolver",
-            "version": "1.7.0",
+            "version": "1.7.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/phpDocumentor/TypeResolver.git",
-                "reference": "1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5"
+                "reference": "dfc078e8af9c99210337325ff5aa152872c98714"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5",
-                "reference": "1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5",
+                "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dfc078e8af9c99210337325ff5aa152872c98714",
+                "reference": "dfc078e8af9c99210337325ff5aa152872c98714",
                 "shasum": ""
             },
             "require": {
@@ -2176,9 +2176,9 @@
             "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
             "support": {
                 "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
-                "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.0"
+                "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.1"
             },
-            "time": "2023-03-12T10:13:29+00:00"
+            "time": "2023-03-27T19:02:04+00:00"
         },
         {
             "name": "phpstan/phpdoc-parser",


Test patch: