In the present work the role that a generalized uncertainty principle could play in the quantization of the electromagnetic field is analyzed. It will be shown that we may speak of a Fock space, a result that implies that the concept of photon is properly defined. Nevertheless, in this new context the creation and annihilation operators become a function of the new term that modifies the Heisen...