The Polish authorities had failed to assess the impact of the detention on the family and the child in particular, not fulfilled their obligation to consider the family’s detention as a measure of last resort and had not considered alternative measures.
Source: official link