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: https://phpstan.org/r/6cd6d2b2-c2ef-4ed6-a769-f68932b1756b
#Psalm: https://psalm.dev/r/b70fdf28f9
#Mago: https://mago.carthage.software/1.29.0/en/playground/#019e6163-dddc-fdf5-b576-97af8adadbff
With PHPStan 2.2, I can use `decimal-int-string`, but the docs specifically reference it in relation to array indexes: https://phpstan.org/r/950eef98-3ae9-4423-a002-2999b13982a9
🐘 Mago 1.29.0 is out!
✨ Readable closure & anon-class names
✨ Regex-pattern issue ignores
✨ WordPress security rules
🐛 Generic template inference fixes
https://github.com/carthage-software/mago/releases/tag/1.29.0
Tarta helada de mango y coco
Receta crudivegana muy muy simple que nos permite tener una tarta preparada en 15 min. […]Last 0.8 version of #PHPantom made me switch back to PHPStorm.
That's is how bad it is.
#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Zed #ZedEditor #Rust #Mago #LSP
The video recording of my #DrupalDevDays talk about coding standards, static analysis and #Mago is now available: