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

Fix notices in CLI mode