But then you'd have to write in largely untyped PHP (yes, I know PHP now has some types, but it's not the level of other languages) and not a better language like e.g. TypeScript or Rust.
You're presenting this as if it's a feature. I think that's a good summary of PHP and its culture's relation to types.