I know with #PHP static analyzers I can annotate that something is a `numeric-st...

@ramsey@phpc.social

I know with #PHP static analyzers I can annotate that something is a `numeric-string`, but this also allows floats. Is there a way to say “this string is an integer string?”

Here are examples of what I’m trying to do where `numeric-string` doesn’t cut it:

#PHPStan: phpstan.org/r/6cd6d2b2-c2ef-4e

#Psalm: psalm.dev/r/b70fdf28f9

#Mago: mago.carthage.software/1.29.0/

With PHPStan 2.2, I can use `decimal-int-string`, but the docs specifically reference it in relation to array indexes: phpstan.org/r/950eef98-3ae9-44