Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
* 1.x:
  fix: deprecations triggered by debug class loader
  • Loading branch information
fabpot committed Aug 3, 2023
2 parents b31c58d + 1a482f5 commit 347248e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class Flex implements PluginInterface, EventSubscriberInterface
];
private $filter;

/**
* @return void
*/
public function activate(Composer $composer, IOInterface $io)
{
if (!\extension_loaded('openssl')) {
Expand Down Expand Up @@ -193,6 +196,9 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)
}
}

/**
* @return void
*/
public function deactivate(Composer $composer, IOInterface $io)
{
self::$activated = false;
Expand Down Expand Up @@ -498,6 +504,9 @@ private function synchronizePackageJson(string $rootDir)
}
}

/**
* @return void
*/
public function uninstall(Composer $composer, IOInterface $io)
{
$this->lock->delete();
Expand Down
4 changes: 4 additions & 0 deletions src/InformationOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function getJobType()

/**
* {@inheritdoc}
*
* @return string
*/
public function getOperationType()
{
Expand All @@ -65,6 +67,8 @@ public function getOperationType()

/**
* {@inheritdoc}
*
* @return string
*/
public function show($lock)
{
Expand Down
3 changes: 3 additions & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public static function fromJson(array $json): self
return $response;
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
Expand Down

0 comments on commit 347248e

Please sign in to comment.