We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f10ce commit 024eafbCopy full SHA for 024eafb
2 files changed
src/DocScan/Session/Retrieve/PageResponse.php
@@ -44,7 +44,9 @@ public function __construct(array $page)
44
}
45
46
47
- $this->extractionImageIds = $page['extraction_image_ids'] ?? [];
+ $this->extractionImageIds = isset($page['extraction_image_ids']) && is_array($page['extraction_image_ids'])
48
+ ? $page['extraction_image_ids']
49
+ : [];
50
51
52
/**
tests/DocScan/Session/Retrieve/PageResponseTest.php
@@ -53,7 +53,7 @@ public function testGetFrames()
53
]);
54
55
$this->assertCount(2, $pageResponse->getFrames());
56
- $this->containsOnlyInstancesOf(FrameResponse::class, $pageResponse->getFrames());
+ $this->assertContainsOnlyInstancesOf(FrameResponse::class, $pageResponse->getFrames());
57
58
59
0 commit comments