Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information