Answers for "r, unexpected token ":", expecting "," or ";""

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

Code answers related to "r, unexpected token ":", expecting "," or ";""

Browse Popular Code Answers by Language