My manager did the opposite, praised me for being the top dev, gave me a 7% raise, said that's the max they could give anyone, asked me not to tell the others.
The problem with being "the top dev" is there's no one to learn from, so I started looking for other opportunities anyways.
Never mentioned my old salary, and new company offered me 50% more.
And when salary comes up in general conversation the new company frequently mentions apologetically that they're a smaller company who can't afford to pay as much as others.
Raises cap out here at 6% if you're absolutely phenomenal.