Seen several times over the last year in SecurityCheckPlugin, where certain tests start failing with PHP 8.3. At the time, I eventually found that it's because the native AST generated by php-ast no longer has the MAGIC_CLASS flag on __CLASS__ nodes, so I reported it for phan in https://github.com/phan/phan/issues/4841. Upon digging further, I found an issue in php-ast that seems at least related: https://github.com/nikic/php-ast/issues/239. There, the problem was caused by PHP 7 and PHP 8 coexisting on the host, and values from the former being used when compiling php-ast for the latter.
The issue can be reproduced locally, too. A while back I fixed it by switching from sury's php-ast to PECL, but because it worked immediately, I didn't do any research as to why it worked. Just 5 days ago, on June 3rd, the issue came back with PECL php-ast. I switched to sury, and this also fixed it. Once again though, I haven't tried tracking this down, nor am I sure where to look next.