I have the following code:
class PairGalleryController extends Controller
{
/**
* @Route("/PairGalleryIndex")
*/
public function IndexAction()?
{
$output = "";
}
}
... and yet I see an error in my IDE saying that the method "should either have body or be abstract."
I'm sure I'm overlooking a simple solution. What am I missing that is causing this problem?
====
Edit: Interestingly, this code refuses to be formatted in the preview as code when I indent it on the StackOverflow editing form. So maybe there's an invisible character that's causing parsing problems in some way. That's my guess, anyhow. I would love to hear others' ideas.