#PHPStan experts: Is it possible to exclude something from a type? Afaik, PHPSta...
Zuri (he/him) ❌️👑 | 🕐 CET @shaedrich@mastodon.online
#PHPStan experts: Is it possible to exclude something from a type? Afaik, PHPStan doesn't have a concept of "negative types", but maybe, there's a trick or something 🤔
https://phpstan.org/r/a5aa1930-0758-4609-86cf-dde2127685bc
What I would like to achieve, is typing the $disk (DestinationDisk generic) parameter of copyToDisk as a string but not $this->disk (Disk generic). Is that possible?
#FollowerPower #amCoding #amProgramming #dataTypes #softwareDevelopment #softwareEngineering #PHP