All courts shall take judicial notice of the existence of all cities and villages incorporated under this Code, of the changes made in their territory, and of the change of incorporation of any municipality from its former incorporation to its incorporation under this Code. From the time of incorporation, or change of incorporation under this Code, this Code shall apply to such cities and villages. Laws in conflict with this Code shall no longer apply to such cities and villages. But laws not inconsistent with the provisions of this Code shall continue in force and apply to any such city or village, the same as if the incorporation or change of incorporation has not taken place.
65 ILCS 5/2-1-1