Skip to content

Commit

Permalink
Use global Closure namespace (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinfd authored and barryvdh committed Aug 9, 2019
1 parent 69fae0e commit 2b0311d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PdfFaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function assertViewHas($key, $value = null)

if (is_null($value)) {
PHPUnit::assertArrayHasKey($key, $this->view->getData());
} elseif ($value instanceof Closure) {
} elseif ($value instanceof \Closure) {
PHPUnit::assertTrue($value($this->view->$key));
} else {
PHPUnit::assertEquals($value, $this->view->$key);
Expand Down

0 comments on commit 2b0311d

Please sign in to comment.