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 5fce16b commit 0632403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/Schema/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function makeSchema(string $name, array $schema): array

// [class, 'data:something.*'] vs [class, 'data:something']
$iterate = \str_contains((string)$origin, '.*') || !empty($definition[self::ITERATE]);
$origin = \rtrim($origin, '.*');
$origin = \rtrim((string) $origin, '.*');
} else {
$origin = $field;
$iterate = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Schema/AttributeMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function testInputAttribute(): void
public int $page;

#[Attribute]
private string $wsPath;
private readonly string $wsPath;

#[BearerToken]
public string $token;
Expand Down

0 comments on commit 0632403

Please sign in to comment.