Skip to content

Commit

Permalink
Merge branch '3.1.x' into 3.0.x-merge-up-into-3.1.x_QtJdkRjD
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky authored Jan 29, 2024
2 parents 658ed12 + 4765706 commit e5b3d43
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/merge-me.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Merge me!
uses: ridedott/[email protected].35
uses: ridedott/[email protected].50
with:
# Depending on branch protection rules, a manually populated
# `GITHUB_TOKEN_WORKAROUND` environment variable with permissions to
Expand Down
9 changes: 7 additions & 2 deletions src/IndefiniteLengthByteStringObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ public function __toString(): string
return $result . "\xFF";
}

public static function create(): self
public static function create(string ...$chunks): self
{
return new self();
$object = new self();
foreach ($chunks as $chunk) {

Check warning on line 39 in src/IndefiniteLengthByteStringObject.php

View workflow job for this annotation

GitHub Actions / 5️⃣ Mutation Testing

Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public static function create(string ...$chunks) : self { $object = new self(); - foreach ($chunks as $chunk) { + foreach (array() as $chunk) { $object->append($chunk); } return $object;
$object->append($chunk);
}

return $object;
}

public function add(ByteStringObject $chunk): self
Expand Down
9 changes: 7 additions & 2 deletions src/IndefiniteLengthListObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ public function __toString(): string
return $result . "\xFF";
}

public static function create(): self
public static function create(CBORObject ...$items): self
{
return new self();
$object = new self();
foreach ($items as $item) {

Check warning on line 48 in src/IndefiniteLengthListObject.php

View workflow job for this annotation

GitHub Actions / 5️⃣ Mutation Testing

Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ public static function create(CBORObject ...$items) : self { $object = new self(); - foreach ($items as $item) { + foreach (array() as $item) { $object->add($item); } return $object;
$object->add($item);
}

return $object;
}

/**
Expand Down
9 changes: 7 additions & 2 deletions src/IndefiniteLengthTextStringObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ public function __toString(): string
return $result . "\xFF";
}

public static function create(): self
public static function create(string ...$chunks): self
{
return new self();
$object = new self();
foreach ($chunks as $chunk) {
$object->append($chunk);
}

return $object;
}

public function add(TextStringObject $chunk): self
Expand Down
2 changes: 1 addition & 1 deletion src/OtherObject/SimpleObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class SimpleObject extends Base implements Normalizable
{
public static function supportedAdditionalInformation(): array
{
return array_merge(range(0, 19), [24]);
return [...range(0, 19), 24];
}

public static function create(int $value): self|FalseObject|TrueObject|NullObject|UndefinedObject
Expand Down

0 comments on commit e5b3d43

Please sign in to comment.