Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 04472b4

Browse filesBrowse files
committed
Require Composer's runtime API to be present
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 71454a8 commit 04472b4
Copy full SHA for 04472b4

File tree

5 files changed

+5
-3
lines changed
Filter options

5 files changed

+5
-3
lines changed

‎composer.json

Copy file name to clipboardExpand all lines: composer.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"require": {
3535
"php": ">=8.0.2",
36+
"composer-runtime-api": ">=2",
3637
"ext-xml": "*",
3738
"friendsofphp/proxy-manager-lts": "^1.0.2",
3839
"doctrine/event-manager": "~1.0",

‎src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/ContainerBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ final public static function willBeAvailable(string $package, string $class, arr
14161416
return false;
14171417
}
14181418

1419-
if (!class_exists(InstalledVersions::class) || !InstalledVersions::isInstalled($package) || InstalledVersions::isInstalled($package, false)) {
1419+
if (!InstalledVersions::isInstalled($package) || InstalledVersions::isInstalled($package, false)) {
14201420
return true;
14211421
}
14221422

‎src/Symfony/Component/DependencyInjection/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/composer.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.0.2",
20+
"composer-runtime-api": ">=2",
2021
"psr/container": "^1.1|^2.0",
2122
"symfony/deprecation-contracts": "^2.1|^3.0",
2223
"symfony/service-contracts": "^1.1.6|^2.0|^3.0"

‎src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/ErrorHandler/DebugClassLoader.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ public function checkAnnotations(\ReflectionClass $refl, string $class): array
428428
} elseif (!$refl->isInterface()) {
429429
if (!strncmp($vendor, str_replace('_', '\\', $use), $vendorLen)
430430
&& str_starts_with($className, 'Symfony\\')
431-
&& (!class_exists(InstalledVersions::class)
432-
|| 'symfony/symfony' !== InstalledVersions::getRootPackage()['name'])
431+
&& 'symfony/symfony' !== InstalledVersions::getRootPackage()['name']
433432
) {
434433
// skip "same vendor" @method deprecations for Symfony\* classes unless symfony/symfony is being tested
435434
continue;

‎src/Symfony/Component/ErrorHandler/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Component/ErrorHandler/composer.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.0.2",
20+
"composer-runtime-api": ">=2",
2021
"psr/log": "^1|^2|^3",
2122
"symfony/var-dumper": "^5.4|^6.0"
2223
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.