Skip to content
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

Merged
merged 4 commits into from
Apr 15, 2021

Conversation

gennadiylitvinyuk
Copy link
Contributor

Q A
Documentation no
Bugfix no
BC Break yes
New Feature yes
RFC no
QA no

Description

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]

- 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]>
@gennadiylitvinyuk
Copy link
Contributor Author

Implementation of #12

@froschdesign froschdesign linked an issue Mar 24, 2021 that may be closed by this pull request
6 tasks
phpunit.xml.dist Outdated Show resolved Hide resolved
@froschdesign froschdesign added this to the 0.3.0 milestone Mar 24, 2021
@froschdesign
Copy link
Member

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]>
@@ -11,11 +11,11 @@
use Composer\Factory;
use Composer\Json\JsonFile;

use function call_user_func;
Copy link
Member

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)();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -15,6 +15,11 @@
use Composer\Package\RootPackageInterface;
use Composer\Package\Version\VersionParser;
use Composer\Plugin\PluginInterface;

use function call_user_func;
Copy link
Member

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().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@samsonasik samsonasik merged commit ed53050 into laminas:0.3.x Apr 15, 2021
@samsonasik
Copy link
Member

Thank you @gennadiylitvinyuk

@weierophinney weierophinney mentioned this pull request Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP 8.0 support
4 participants