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 9e401a6 commit dbfca01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Annotation/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function __construct(string $comment)

foreach ($lines as $line) {
// strip up comment prefix
/** @var string $line */
$line = \preg_replace('/[\t ]*[\/]?\*[\/]? ?/', '', $line);

if (\preg_match('/ *@([^ ]+) (.*)/u', $line, $matches)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/AbstractCommandsTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class AbstractCommandsTestCase extends TestCase

protected TestApp $app;
protected array $buf = [];
private Storage $storage;
private readonly Storage $storage;

public function __construct($name = null, array $data = [], $dataName = '')
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Storage
/** @var array */
protected $storage = [];

public function __construct(private string $dir)
public function __construct(private readonly string $dir)
{
}

Expand Down

0 comments on commit dbfca01

Please sign in to comment.