Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit a245277

Browse files
committed
[REF] InvalidArgumentException namespace
1 parent e0efed3 commit a245277

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PrintNode/Request.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function getPrintersByComputers()
522522
$arguments = func_get_args();
523523

524524
if (count($arguments) > 2) {
525-
throw new InvalidArgumentException(
525+
throw new \InvalidArgumentException(
526526
sprintf(
527527
'Too many arguments given to getPrintersByComputers.'
528528
)
@@ -570,7 +570,7 @@ public function __call($methodName, $arguments)
570570
$arguments = array_shift($arguments);
571571

572572
if (!is_string($arguments)) {
573-
throw new InvalidArgumentException(
573+
throw new \InvalidArgumentException(
574574
sprintf(
575575
'Invalid argument type passed to %s. Expecting a string got %s',
576576
$methodName,
@@ -614,7 +614,7 @@ public function __call($methodName, $arguments)
614614
public function patch(Entity $entity)
615615
{
616616
if (!($entity instanceof Entity)) {
617-
throw new InvalidArgumentException(
617+
throw new \InvalidArgumentException(
618618
sprintf(
619619
'Invalid argument type passed to patch. Expecting Entity got %s',
620620
gettype($entity)
@@ -644,7 +644,7 @@ public function patch(Entity $entity)
644644
public function post(Entity $entity)
645645
{
646646
if (!($entity instanceof Entity)) {
647-
throw new InvalidArgumentException(
647+
throw new \InvalidArgumentException(
648648
sprintf(
649649
'Invalid argument type passed to patch. Expecting Entity got %s',
650650
gettype($entity)
@@ -677,7 +677,7 @@ public function put()
677677
$entity = array_shift($arguments);
678678

679679
if (!($entity instanceof Entity)) {
680-
throw new InvalidArgumentException(
680+
throw new \InvalidArgumentException(
681681
sprintf(
682682
'Invalid argument type passed to patch. Expecting Entity got %s',
683683
gettype($entity)

0 commit comments

Comments
 (0)