From 7d817d908516994c31c5c9edef81860b4f29eed9 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Thu, 21 Nov 2024 09:48:13 +0700 Subject: [PATCH] Update --- src/QueryBuilder/AbstractQueryBuilder.php | 2 +- tests/Db/QueryBuilder/QueryBuilderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QueryBuilder/AbstractQueryBuilder.php b/src/QueryBuilder/AbstractQueryBuilder.php index 987dcf764..71c26248d 100644 --- a/src/QueryBuilder/AbstractQueryBuilder.php +++ b/src/QueryBuilder/AbstractQueryBuilder.php @@ -499,7 +499,7 @@ protected function prepareResource(mixed $value): string $value = stream_get_contents($value); if ($value === false) { - throw new InvalidArgumentException('Cannot read steam contents.'); + throw new InvalidArgumentException('Cannot read stream contents.'); } return $this->prepareBinary($value); diff --git a/tests/Db/QueryBuilder/QueryBuilderTest.php b/tests/Db/QueryBuilder/QueryBuilderTest.php index 9557bc92f..b48122be0 100644 --- a/tests/Db/QueryBuilder/QueryBuilderTest.php +++ b/tests/Db/QueryBuilder/QueryBuilderTest.php @@ -332,7 +332,7 @@ public function testPrepareValueClosedResource(): void $qb->prepareValue($resource); } - public function testPrepareValueNonSteamResource(): void + public function testPrepareValueNonStreamResource(): void { $db = $this->getConnection(); $qb = $db->getQueryBuilder();