Skip to content

Commit d54c044

Browse files
committed
Added getContext method
1 parent ea3ecf7 commit d54c044

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
66
use Rector\Config\RectorConfig;
77
use Rector\Set\ValueObject\LevelSetList;
8-
use Rector\Symfony\Set\SymfonySetList;
98

109
return static function (RectorConfig $rectorConfig): void {
1110
$rectorConfig->paths([

src/Exception/UtilsException.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
class UtilsException extends \Exception
66
{
7-
public function __construct(string $message, int $code = 0)
7+
public function __construct(string $message, int $code = 0, private readonly array $context = [])
88
{
99
parent::__construct($message, $code);
1010
}
11+
12+
public function getContext(): array
13+
{
14+
return $this->context;
15+
}
1116
}

src/Plugin/StorageAwareAuthenticationPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* Falls back to the initially configured access token when storage is empty.
1717
*/
18-
final class StorageAwareAuthenticationPlugin implements Plugin
18+
final readonly class StorageAwareAuthenticationPlugin implements Plugin
1919
{
2020
public function __construct(
2121
private TokenStorageInterface $storage,

0 commit comments

Comments
 (0)