Mind if I ask who, and when? Specifics are usually helpful when making claims about other posters.
Well, whoever said that was incorrect (IMHO).
The content of science is determined by what scientists DO, not what they "say". IOW those ideas that are fruitfully employed, or implicated, by working scientists in the production of original research, are part of science.
What scientists "say," or what they aver to "believe," is irrelevant, except insofar it happens to accurately describe what they do. And it doesn't always. For instance Einstein famous disbelieved in much of quantum theory, but he used it nevertheless.
Let's say that every scientist on the face of the earth woke up tomorrow and asserted that they were now creationists and disbelieved in evolution, but they continued to use and implicate evolutionary theory in their actual work just as before. Evolution would be just as much a part of science, and creationism as unscientific, as before, the verbal and universal testimony of scientists notwithstanding.