Skip to content

Commit 069bff0

Browse files
Fixed annotation for Chrome.createProcess $cmdLine type. Updated test to pass correct type.
1 parent b7466c8 commit 069bff0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Chrome.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct($binary = 'chrome-pdf', $processClass = null)
4343
/**
4444
* A factory for creating process classes, to execute the binary
4545
*
46-
* @param string $cmdline The command to run
46+
* @param array $cmdline The command to run
4747
* @return object
4848
*/
4949
public function createProcess($cmdline)

test/ChromeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public function test_callsSpecifiedBinary()
5454
public function test_createProcessFactory()
5555
{
5656
$pdf = new Chrome();
57-
$this->assertInstanceOf(Process::class, $pdf->createProcess(''));
57+
$this->assertInstanceOf(Process::class, $pdf->createProcess([]));
5858

5959
$pdf = new Chrome('', TestProcessRunner::class);
60-
$this->assertInstanceOf(TestProcessRunner::class, $pdf->createProcess(''));
60+
$this->assertInstanceOf(TestProcessRunner::class, $pdf->createProcess([]));
6161
}
6262

6363
public function test_sandboxOption()

0 commit comments

Comments
 (0)