Slots example returns : colon syntax error

I’m working through the slots video and have:

<?php snippet('layout', slots: true) ?>

and get the debug message:

 ParseError  
syntax error, unexpected ':', expecting ')'

I’m working in VSCode and don’t see an extension that might rectify/accept this. Any ideas? Thanks!

Sure that’s caused by this line in your code? If in doubst, please post the stack trace.

make sure you are running php 8. named paramters are not available on 7.4.

Yes, I was working locally and didn’t have php 8 running. I’m learning!