They take inspiration from everything! I think that's one of the most interesting aspects of PHP design since version 5.0 is that they sort of unpretentiously take the good concept and syntax ideas from any language that has them.
They did give deprecation warnings in various version 7 releases, so they didn't come out of nowhere. (Not that you said they did, but for the purpose of other readers.)
Probably FB’s Hack and similar efforts were influences first, since they predate the rise of TS.
On the other hand, though, PHP’s always tended to be a borrowing language that accumulates features from elsewhere, so there probably is some TS influence.