Skip to content

Commit a4c7d3f

Browse files
committed
feat: update tests and v3 adapter notes
Signed-off-by: mmalac <mmalac@sygic.com>
1 parent 07edc51 commit a4c7d3f

File tree

3 files changed

+6
-74
lines changed

3 files changed

+6
-74
lines changed

docs/book/v3/adapter.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ The [JSON](https://wikipedia.org/wiki/JavaScript_Object_Notation) adapter provid
4343

4444
Available options include:
4545

46-
| Option | Data Type | Default Value |
47-
|---------------------------|-----------------------------|---------------------------------|
48-
| `cycle_check` | `boolean` | `false` |
49-
| `object_decode_type` | `Laminas\Json\Json::TYPE_*` | `Laminas\Json\Json::TYPE_ARRAY` |
50-
| `enable_json_expr_finder` | `boolean` | `false` |
46+
| Option | Data Type | Default Value | Notes |
47+
|---------------------------|-----------------------------|---------------------------------|-------------------------------------------------------|
48+
| `cycle_check` | `boolean` | `false` | **Deprecated**. Will be remvoed in v4 |
49+
| `object_decode_type` | `Laminas\Json\Json::TYPE_*` | `Laminas\Json\Json::TYPE_ARRAY` | **Deprecated**. Will be replaced by assoc_array in v4 |
50+
| `enable_json_expr_finder` | `boolean` | `false` | **Deprecated**. Will be remvoed in v4 |
5151

5252
## The PhpCode Adapter
5353

docs/book/v4/adapter.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

test/Adapter/JsonTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function testAdapterAcceptsOptions(): void
3535
self::assertEquals(true, $adapter->getOptions()->getCycleCheck());
3636
self::assertEquals(true, $adapter->getOptions()->getEnableJsonExprFinder());
3737
self::assertEquals(1, $adapter->getOptions()->getObjectDecodeType());
38+
self::assertEquals(true, $adapter->getOptions()->isAssocArray());
3839
}
3940

4041
public function testSerializeString(): void

0 commit comments

Comments
 (0)