Poedit dose not find strings

Hi guys.

I have a wired issue with Poedit, I am not sure if it is from the last update…

I have many PHP files in a WordPress plugin but one of them that has translatable strings in it using esc_html__ are not found, just that file, all the other PHP files are working as it should, all translatable strings are found.

As a note, the PHP file with the problem is using a PHP class.

Did anybody else had this issue?

Thank you.

I am answering my own question for others.

I have no idea why but I had to create a new PHP file and then add the code in it and now is working, it is some sort of Poedit bug… it is the first time this is happening to me and I’ve used it for a very long time.