-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added PHP 8.0 support #19
Added PHP 8.0 support #19
Conversation
- Added PHP 8.0 constraint to composer.json - Removed PHP less 7.3 support from composer.json - Modified composer.json to implement phpunit 9.3 - Fixed phpunit tests and config to be compatible with the phpunit 9.3 - Added PHP 8.0 to .travis.yml - Removed PHP less 7.3 support from .travis.yml Added PHP 8.0 support - Added PHP 8.0 constraint to composer.json - Removed PHP less 7.3 support from composer.json - Modified composer.json to implement phpunit 9.3 - Fixed phpunit tests and config to be compatible with the phpunit 9.3 - Added PHP 8.0 to .travis.yml - Removed PHP less 7.3 support from .travis.yml Signed-off-by: Gennadiy Litvinyuk <[email protected]>
Implementation of #12 |
Travis CI is gone and the new workflow for continuous integration must be added that the tests can be run. (See also on other components for help, e.g. laminas-feed.) |
CI Configuration: from Travis to Github Actions Reverted phpunit schema Bumped up laminas-coding-standard CS Fixes Signed-off-by: Gennadiy Litvinyuk <[email protected]>
Signed-off-by: Gennadiy Litvinyuk <[email protected]>
src/ComposerJsonRetrievalTrait.php
Outdated
@@ -11,11 +11,11 @@ | |||
use Composer\Factory; | |||
use Composer\Json\JsonFile; | |||
|
|||
use function call_user_func; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this patch updates the skeleton to set the minimum PHP version to 7.3, we can stop using call_user_func()
, and instead just call the callable directly (as 7.2 forwards allows any callable to be directly invoked). Please remove this import, and then update the getComposerJson()
call such that:
$composerFile = call_user_fun($this->composerFileFactory);
becomes:
$composerFile = ($this->composerFileFactory)();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/OptionalPackagesInstaller.php
Outdated
@@ -15,6 +15,11 @@ | |||
use Composer\Package\RootPackageInterface; | |||
use Composer\Package\Version\VersionParser; | |||
use Composer\Plugin\PluginInterface; | |||
|
|||
use function call_user_func; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as for the ComposerJsonRetrievalTrait
, only this time, the function to update will be runInstaller()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Gennadiy Litvinyuk <[email protected]>
Thank you @gennadiylitvinyuk |
Description
Added PHP 8.0 support
Signed-off-by: Gennadiy Litvinyuk [email protected]