[patch-warnings] fix some warnings when to inexsitant array indexes

@rande exactly only "provider-includes"  is used in the packagist packages.json file. So I will fix that.