Commit 96c0d47
[Console] Fixed: Trying to access array offset on value of type int
PHP 7.4 throws an error exception when you are accessing an array offset of a value of type int.
There is an if statement inside the __toString() method of the \Symfony\Component\Console\Input\ArrayInput class that checks the first key of each given parameter to the console command.
It throws an ErrorException with the message: Trying to access array offset on value of type int, because of integer keys of the parameters property of the class.
This modification checks and returns the first key of the parameter if PHP can access to it or, it returns the parameter's key itself.1 parent 5cacc5d commit 96c0d47
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments