Exclude errors based on folder?

I have a third party codebase which works, but throws errors when run (a weekly cron job, that lasts about 5 seconds). Using with php 7.4. Builder of code states to ignore the errors.

Is it possible to exclude php errors from being recorded in php_errors.log based on anything within a folder?

Such as exclude inside "/usr/local/lsws/_html/website.com/generator"

How would this be done?