Skip to content

Commit 96fab32

Browse files
Test on PHP 8.1
1 parent 9a22ef2 commit 96fab32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- '7.3'
2525
- '7.4'
2626
- '8.0'
27+
- '8.1'
2728
dependencies:
2829
- 'highest'
2930
include:

src/Flex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)
122122
$this->config = $composer->getConfig();
123123
$this->options = $this->initOptions();
124124

125-
$symfonyRequire = preg_replace('/\.x$/', '.x-dev', getenv('SYMFONY_REQUIRE') ?: ($composer->getPackage()->getExtra()['symfony']['require'] ?? null));
125+
$symfonyRequire = preg_replace('/\.x$/', '.x-dev', getenv('SYMFONY_REQUIRE') ?: ($composer->getPackage()->getExtra()['symfony']['require'] ?? ''));
126126

127127
if ($composer2 = version_compare('2.0.0', PluginInterface::PLUGIN_API_VERSION, '<=')) {
128128
$rfs = Factory::createHttpDownloader($this->io, $this->config);

0 commit comments

Comments
 (0)