File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace MongoDB \Exception ;
4
+
5
+ class BadMethodCallException extends \BadMethodCallException implements Exception
6
+ {
7
+ }
Original file line number Diff line number Diff line change 2
2
3
3
namespace MongoDB \Model ;
4
4
5
+ use MongoDB \Exception \BadMethodCallException ;
5
6
use ArrayAccess ;
6
- use BadMethodCallException ;
7
7
8
8
/**
9
9
* Index information model class.
@@ -140,21 +140,21 @@ public function offsetGet($key)
140
140
* Not supported.
141
141
*
142
142
* @see http://php.net/arrayaccess.offsetset
143
- * @throws BadMethodCallException IndexInfo is read-only
143
+ * @throws BadMethodCallException IndexInfo is immutable
144
144
*/
145
145
public function offsetSet ($ key , $ value )
146
146
{
147
- throw new BadMethodCallException ('IndexInfo is read-only ' );
147
+ throw new BadMethodCallException ('IndexInfo is immutable ' );
148
148
}
149
149
150
150
/**
151
151
* Not supported.
152
152
*
153
153
* @see http://php.net/arrayaccess.offsetunset
154
- * @throws BadMethodCallException IndexInfo is read-only
154
+ * @throws BadMethodCallException IndexInfo is immutable
155
155
*/
156
156
public function offsetUnset ($ key )
157
157
{
158
- throw new BadMethodCallException ('IndexInfo is read-only ' );
158
+ throw new BadMethodCallException ('IndexInfo is immutable ' );
159
159
}
160
160
}
You can’t perform that action at this time.
0 commit comments