Update php version config in composer to 7.4. We have used 7.4 as the lowest supported version for a while now. We just haven't updated composer.json accordingly.
Update libraries to their latest version possible according to the new PHP version requirement.
Added new "php-http/discovery" composer extension as a dependency to the latest "omnipay/common" version (v3.2.1).
Motivation and Context
Working on #1752 involves rewriting old code with Arrow Functions syntax, which was introduced in PHP 7.4.
phpstan reports an error that doesn't make sense:
Error: Function getResourcesTagCloud not found.
------ ---------------------------------------------------------------------
Line UI/Components/Sidebar.php
------ ---------------------------------------------------------------------
615 Function getResourcesTagCloud not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
Investigation reveals that by updating the PHP version in composer config, composer will update phpstan to a more appropriate version for PHP 7.4 support. Then the arrow function wouldn't cause an issue anymore.
Description
Update php version config in composer to 7.4. We have used 7.4 as the lowest supported version for a while now. We just haven't updated composer.json accordingly.
Update libraries to their latest version possible according to the new PHP version requirement.
Added new "php-http/discovery" composer extension as a dependency to the latest "omnipay/common" version (v3.2.1).
Motivation and Context
How Has This Been Tested?
Screenshots
Before![image](https://github.com/GibbonEdu/core/assets/91274/8862e240-8772-45f7-b03f-9d6ec22610a9)
After![image](https://github.com/GibbonEdu/core/assets/91274/387073c2-f0b8-4031-96f3-4191e3f3bb32)