I fixed this problem by changing line separator for the file from CR to LF in the bottom list of the IDE (PHPStorm).