File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Symfony \Flex ;
4
4
5
- use Composer \DependencyResolver \Operation \SolverOperation ;
5
+ use Composer \DependencyResolver \Operation \OperationInterface ;
6
6
use Composer \Package \PackageInterface ;
7
7
8
8
/**
9
9
* @author Maxime Hélias <[email protected] >
10
10
*/
11
- class InformationOperation extends SolverOperation
11
+ class InformationOperation implements OperationInterface
12
12
{
13
13
private $ package ;
14
14
15
- public function __construct (PackageInterface $ package, $ reason = null )
15
+ public function __construct (PackageInterface $ package )
16
16
{
17
- parent ::__construct ($ reason );
18
-
19
17
$ this ->package = $ package ;
20
18
}
21
19
@@ -62,4 +60,12 @@ public function __toString()
62
60
{
63
61
return $ this ->show (false );
64
62
}
63
+
64
+ /**
65
+ * Compatibility for Composer 1.x, not needed in Composer 2.
66
+ */
67
+ public function getReason ()
68
+ {
69
+ return null ;
70
+ }
65
71
}
You can’t perform that action at this time.
0 commit comments