diff --git a/Model/SentryInteraction.php b/Model/SentryInteraction.php index 4880ca8c521b9aeffc96fad6326987065ab5230e..bf19ae54238195d6e08d92fcb6b98432bb5233d4 100644 --- a/Model/SentryInteraction.php +++ b/Model/SentryInteraction.php @@ -108,6 +108,7 @@ class SentryInteraction /** @var ?UserContextInterface $userContext */ $userContext = $this->getObjectIfInitialized(UserContextInterface::class); + return $this->userContext = $userContext; } diff --git a/rector.php b/rector.php index b483e628b4a466841224658dbe7beb717c103648..25655cce79d3c8f4188648348c1ff07d96d09d3a 100644 --- a/rector.php +++ b/rector.php @@ -11,11 +11,11 @@ use Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector; use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector; use Rector\DeadCode\Rector\Property\RemoveUselessReadOnlyTagRector; use Rector\Exception\Configuration\InvalidConfigurationException; +use Rector\Php\PhpVersionResolver\ComposerJsonPhpVersionResolver; use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector; use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; use Rector\Php80\Rector\FunctionLike\MixedTypeRector; use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; -use Rector\Php\PhpVersionResolver\ComposerJsonPhpVersionResolver; use Rector\Set\ValueObject\LevelSetList; use Rector\TypeDeclaration\Rector\ClassMethod\AddParamArrayDocblockBasedOnCallableNativeFuncCallRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnArrayDocblockBasedOnArrayMapRector; @@ -26,19 +26,19 @@ return static function (RectorConfig $rectorConfig): void { $magentoRector($rectorConfig); $rectorConfig->paths([ - __DIR__ . '/Adminhtml', - __DIR__ . '/Block', - __DIR__ . '/Cache', - __DIR__ . '/Collector', - __DIR__ . '/Config', - __DIR__ . '/Controller', - __DIR__ . '/etc', - __DIR__ . '/Handler', - __DIR__ . '/Helper', - __DIR__ . '/Model', - __DIR__ . '/Observer', - __DIR__ . '/Plugin', - __DIR__ . '/view', + __DIR__.'/Adminhtml', + __DIR__.'/Block', + __DIR__.'/Cache', + __DIR__.'/Collector', + __DIR__.'/Config', + __DIR__.'/Controller', + __DIR__.'/etc', + __DIR__.'/Handler', + __DIR__.'/Helper', + __DIR__.'/Model', + __DIR__.'/Observer', + __DIR__.'/Plugin', + __DIR__.'/view', ]); // register a single rule @@ -59,7 +59,7 @@ return static function (RectorConfig $rectorConfig): void { ReadOnlyPropertyRector::class, ReplaceNewDateTimeNull::class, RemoveExtraParametersRector::class, - MixedTypeRector::class + MixedTypeRector::class, ]); try {