How can an Ukrainian child be enrolled into a Polish school?

All children aged between 7 and 18 and obliged to complete their mandatory education will be accepted by Polish schools. Children can be enrolled into schools throughout the entire school term and the grade which they are to attend will be calculated on the basis of the total number of years they have attended school outside of Poland. This will be calculated either on the basis of documents issued by Ukrainian schools or on the basis of a declaration made by the child’s parents. Such documents do not need to be translated into Polish. 

To enroll a child into a school, it is enough to submit an application to the headmaster of that school. “The elementary public school in the region where a foreign child lives shall accept them automatically and other schools, elementary and others, shall accept them if there is room for them.”

The right to access education at a school (or, more accurately, mandatory education) is not related to the legality of one’s residence.