Answers for "syntax error, unexpected ')', expecting "::" at token ")""

PHP
0

syntax error, unexpected token "}", expecting "," or ";" php

class PostsController
{
    /**
     * @Route("/api/posts/{id}", methods={"GET"})
     */
    public function get($id) { /* ... */ }
}
Posted by: Guest on August-07-2021
0

syntax error: word unexpected (expecting "in")

I was on a virtual machine and I started the editor with windows notepad and it converted the script to dos. So, I ended up installing dos2unix, which I used to convert the script. Then, the script worked.
Posted by: Guest on April-17-2021

Code answers related to "syntax error, unexpected ')', expecting "::" at token ")""

Browse Popular Code Answers by Language