The new version also has the same error but this time the it shows in line no 526. Although theme gets uploaded on server but on localhost it is not working. I wanted to create it in local host and then upload the final version on the server. Can you please check for the same.
My XAMPP is 3.2.4
PHP Version 7.2