Fix notices in CLI mode
Merge pull request #1 from naumovs/php-notices-under-cli

Fix notices in CLI mode