Updating the component for some of the required changed in php 5.4