Skip to content

Commit

Permalink
Merge pull request #1141: Apply php8.1 in Rector preset
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Sep 10, 2024
1 parent b7e5b8f commit 143d249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Context/ValueDependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*/
final class ValueDependency implements DependencyInterface
{
private array $variants;
private readonly array $variants;

public function __construct(
private readonly string $name,
private mixed $value,
private readonly mixed $value,
array $variants = null
) {
$this->variants = $variants ?? [$value];
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/ContextProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class ContextProcessor implements ProcessorInterface
// Context injection pattern @{key|default}
private const PATTERN = '/@\\{(?P<name>[a-z0-9_\\.\\-]+)(?: *\\| *(?P<default>[^}]+))?}/i';

private string $pattern;
private readonly string $pattern;

public function __construct(string $pattern = null)
{
Expand Down

0 comments on commit 143d249

Please sign in to comment.