Since $directories is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $directories to at least protected.
Since $directories is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $directories to at least protected.