Enable phpstan on resources and fix duplicate entry
Differential Revision: https://git.kolab.org/D3262