Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 002e0d4

Browse files
GromNaNjmikola
andcommitted
Fix wording
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
1 parent 2c372cd commit 002e0d4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎src/GridFS/Bucket.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,11 +591,12 @@ public function openUploadStream(string $filename, array $options = [])
591591
}
592592

593593
/**
594-
* Register an alias to enable basic filename access for this bucket
594+
* Register an alias to enable basic filename access for this bucket.
595595
*
596596
* For applications that need to interact with GridFS using only a filename
597597
* string, a bucket can be registered with an alias. Files can then be
598598
* accessed using the following pattern:
599+
*
599600
* gridfs://<bucket-alias>/<filename>
600601
*
601602
* Read operations will always target the most recent revision of a file.

‎src/GridFS/Exception/LogicException.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2016-present MongoDB, Inc.
3+
* Copyright 2023-present MongoDB, Inc.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -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)

AltStyle によって変換されたページ (->オリジナル) /