12 Mar 2021, 12:40

@Nishit

It seems like the only problem with your php version.
And you do not need to change anything under vendor folder if your php version is greater than 7.2

Sometime PHP version for Web and CLI may be different it can be cause this issue.

You need to make your php version default for both and then make a try.