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

Allow toggling --ignore-platform-reqs option on PHP 8.0 #28

Merged

Conversation

weierophinney
Copy link
Member

Since the beginning of development on this action, we've used the --ignore-platform-reqs flag when installing dependencies on PHP 8. However, with more packages in the Composer ecosystem supporting PHP 8, we can often safely remove that option and still successfully install packages. To enable that behavior in a BC way, this patch adds the ability to provide an ignore_platform_reqs_8 flag via configuration. By default, the value is true, but the configuration allows you to disable it. Actions working in conjunction with this one can thus opt-in to the configuration option to determine whether or not to toggle that Composer option.

Usage:

{
  "ignore_platform_reqs_8": false
}

Since the beginning of development on this action, we've used the `--ignore-platform-reqs` flag when installing dependencies on PHP 8.
However, with more packages in the Composer ecosystem supporting PHP 8, we can often safely remove that option and still successfully install packages.
To enable that behavior in a BC way, this patch adds the ability to provide an `ignore_platform_reqs_8` flag via configuration.
By default, the value is `true`, but the configuration allows you to disable it.
Actions working in conjunction with this one can thus opt-in to the configuration option to determine whether or not to toggle that Composer option.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
weierophinney added a commit to weierophinney/laminas-continuous-integration-action that referenced this pull request Apr 20, 2021
This patch adds support for the `ignore_platform_reqs_8` job flag introduced in laminas/laminas-ci-matrix-action#28.
When missing, the assumption is to ignore the PHP platform requirement when installing dependencies on PHP 8 (current behavior).
Otherwise, the flag value indicates whether or not to use the flag.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
weierophinney added a commit to weierophinney/laminas-continuous-integration-action that referenced this pull request Apr 20, 2021
This patch adds support for the `ignore_platform_reqs_8` job flag introduced in laminas/laminas-ci-matrix-action#28.
When missing, the assumption is to ignore the PHP platform requirement when installing dependencies on PHP 8 (current behavior).
Otherwise, the flag value indicates whether or not to use the flag.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney weierophinney changed the base branch from 1.6.x to 1.7.x April 20, 2021 14:54
@weierophinney weierophinney added this to the 1.7.0 milestone Apr 20, 2021
@weierophinney weierophinney merged commit 4f21db5 into laminas:1.7.x Apr 20, 2021
@weierophinney weierophinney deleted the feature/disable-platform-reqs-flag branch April 20, 2021 14:54
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.

None yet

1 participant