Skip to content

Commit 9db2b38

Browse files
authored
Merge pull request #106 from htto/main
Fix PHP 7.4 and test issues
2 parents c66514d + 8e6f14d commit 9db2b38

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@
2626
<log type="coverage-text" target="build/coverage.txt"/>
2727
<log type="coverage-clover" target="build/logs/clover.xml"/>
2828
</logging>
29+
<php>
30+
<ini name="date.timezone" value="UTC"/>
31+
</php>
2932
</phpunit>

src/Components/Event.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function attachment(string $url, ?string $mediaType = null): Event
351351
public function embeddedAttachment(
352352
string $data,
353353
?string $mediaType = null,
354-
bool $needsEncoding = true,
354+
bool $needsEncoding = true
355355
): Event {
356356
$this->attachments[] = new BinaryValue($data, $mediaType, $needsEncoding);
357357

@@ -461,7 +461,7 @@ private function resolveProperties(ComponentPayload $payload): self
461461
)
462462
->multiple(
463463
$this->attachments,
464-
function (array|BinaryValue $attachment) {
464+
function ($attachment) {
465465
if ($attachment instanceof BinaryValue) {
466466
return BinaryProperty::create('ATTACH', $attachment);
467467
}

0 commit comments

Comments
 (0)