Changing typehint for beConstructedWith