Skip to content

Commit 94e3848

Browse files
GromNaNjmikola
andauthored
Apply suggestions from code review
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
1 parent 75e8f4d commit 94e3848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GridFS/Exception/LogicException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function bucketAliasNotRegistered(string $alias): self
4444
*/
4545
public static function invalidContext($context): self
4646
{
47-
return new self(sprintf('The "gridfs" context option must be an "array" or "null". Got "%s".', get_debug_type($context)));
47+
return new self(sprintf('Expected "gridfs" stream context to have type "array" but found "%s"', get_debug_type($context)));
4848
}
4949

5050
/**
@@ -55,7 +55,7 @@ public static function invalidContext($context): self
5555
*/
5656
public static function invalidContextCollectionWrapper($object): self
5757
{
58-
return new self(sprintf('Context key "gridfs[collectionWrapper]" must be an instance of %s, %s given', CollectionWrapper::class, get_debug_type($object)));
58+
return new self(sprintf('Expected "collectionWrapper" in "gridfs" stream context to have type "%s" but found "%s"', CollectionWrapper::class, get_debug_type($object)));
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)