Use duck typing for notification handler. Format sources.
Update minimal PHP version