o0h / php-ast-check-diff

This is an action to check modifications in PHP scripts based on Abstract Syntax Tree (AST).
MIT License
3 stars 1 forks source link

Uncaught ValueError: "R088" for enum GitStatus #9

Open gnutix opened 1 month ago

gnutix commented 1 month ago

Even after accepting to downgrade to nikic/php-parser v4.x, I got this error when running the "check" command :

PHP Fatal error: Uncaught ValueError: "R088" is not a valid backing value for enum O0h\PhpAstCheckDiff\Value\GitStatus in vendor/o0h/ast-check-diff/src/External/Git.php:63

o0h commented 1 month ago

This tool uses Git commands under the hood, so it’s possible that some local config on your system is affecting how it behaves.

Could you check if /etc/gitconfig or the config file in your home directory have any settings related to git-diff? If you don’t mind sharing those settings, it might give us some clues to figure out what’s going on.

Thanks for taking the time to help out!