'A little knowledge is a dangerous thing' and 'a little learning is a dangerous thing' have been used synonymously since the 18th century.
The version 'a little learning' is widely attributed to Alexander Pope (1688-1744). It is found in An Essay on Criticism, 1709: -
A little learning is a dangerous thing; drink deep, or taste not the Pierian Spring:
there shallow draughts intoxicate the brain, and drinking largely sobers us again.
