Skip to content

Commit d22cc5c

Browse files
authored
PHPC-2328: Use correct parameter name for classes implementing ArrayAccess (#1495)
1 parent 1183fa9 commit d22cc5c

File tree

4 files changed

+42
-42
lines changed

4 files changed

+42
-42
lines changed

src/BSON/Document.stub.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,37 @@ final public function toCanonicalExtendedJSON(): string {}
4545
final public function toRelaxedExtendedJSON(): string {}
4646

4747
#if PHP_VERSION_ID >= 80000
48-
public function offsetExists(mixed $key): bool {}
48+
public function offsetExists(mixed $offset): bool {}
4949
# else
50-
/** @param mixed $key */
51-
public function offsetExists($key): bool {}
50+
/** @param mixed $offset */
51+
public function offsetExists($offset): bool {}
5252
# endif
5353

5454
#if PHP_VERSION_ID >= 80000
55-
public function offsetGet(mixed $key): mixed {}
55+
public function offsetGet(mixed $offset): mixed {}
5656
# else
5757
/**
58-
* @param mixed $key
58+
* @param mixed $offset
5959
* @return mixed
6060
*/
61-
public function offsetGet($key) {}
61+
public function offsetGet($offset) {}
6262
# endif
6363

6464
#if PHP_VERSION_ID >= 80000
65-
public function offsetSet(mixed $key, mixed $value): void {}
65+
public function offsetSet(mixed $offset, mixed $value): void {}
6666
# else
6767
/**
68-
* @param mixed $key
68+
* @param mixed $offset
6969
* @param mixed $value
7070
*/
71-
public function offsetSet($key, $value): void {}
71+
public function offsetSet($offset, $value): void {}
7272
# endif
7373

7474
#if PHP_VERSION_ID >= 80000
75-
public function offsetUnset(mixed $key): void {}
75+
public function offsetUnset(mixed $offset): void {}
7676
# else
77-
/** @param mixed $key */
78-
public function offsetUnset($key): void {}
77+
/** @param mixed $offset */
78+
public function offsetUnset($offset): void {}
7979
# endif
8080

8181
final public function __toString(): string {}

src/BSON/Document_arginfo.h

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/PackedArray.stub.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,37 @@ final public function toPHP(?array $typeMap = null) {}
3232
#endif
3333

3434
#if PHP_VERSION_ID >= 80000
35-
public function offsetExists(mixed $key): bool {}
35+
public function offsetExists(mixed $offset): bool {}
3636
# else
37-
/** @param mixed $key */
38-
public function offsetExists($key): bool {}
37+
/** @param mixed $offset */
38+
public function offsetExists($offset): bool {}
3939
# endif
4040

4141
#if PHP_VERSION_ID >= 80000
42-
public function offsetGet(mixed $key): mixed {}
42+
public function offsetGet(mixed $offset): mixed {}
4343
# else
4444
/**
45-
* @param mixed $key
45+
* @param mixed $offset
4646
* @return mixed
4747
*/
48-
public function offsetGet($key) {}
48+
public function offsetGet($offset) {}
4949
# endif
5050

5151
#if PHP_VERSION_ID >= 80000
52-
public function offsetSet(mixed $key, mixed $value): void {}
52+
public function offsetSet(mixed $offset, mixed $value): void {}
5353
# else
5454
/**
55-
* @param mixed $key
55+
* @param mixed $offset
5656
* @param mixed $value
5757
*/
58-
public function offsetSet($key, $value): void {}
58+
public function offsetSet($offset, $value): void {}
5959
# endif
6060

6161
#if PHP_VERSION_ID >= 80000
62-
public function offsetUnset(mixed $key): void {}
62+
public function offsetUnset(mixed $offset): void {}
6363
# else
64-
/** @param mixed $key */
65-
public function offsetUnset($key): void {}
64+
/** @param mixed $offset */
65+
public function offsetUnset($offset): void {}
6666
# endif
6767

6868
final public function __toString(): string {}

src/BSON/PackedArray_arginfo.h

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)