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

Commit 6b6690d

Browse files
committed
update exception messages and docblock param in HeadMeta::set(), append(), prepend()
1 parent 895f222 commit 6b6690d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Helper/HeadMeta.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,15 @@ protected function isValid($item)
367367
/**
368368
* Append
369369
*
370-
* @param string $value
370+
* @param object $value
371371
* @return void
372372
* @throws Exception\InvalidArgumentException
373373
*/
374374
public function append($value)
375375
{
376376
if (! $this->isValid($value)) {
377377
throw new Exception\InvalidArgumentException(
378-
'Invalid value passed to append; please use appendMeta()'
378+
'Invalid value passed to append'
379379
);
380380
}
381381

@@ -420,15 +420,15 @@ public function offsetUnset($index)
420420
/**
421421
* Prepend
422422
*
423-
* @param string $value
423+
* @param object $value
424424
* @throws Exception\InvalidArgumentException
425425
* @return void
426426
*/
427427
public function prepend($value)
428428
{
429429
if (! $this->isValid($value)) {
430430
throw new Exception\InvalidArgumentException(
431-
'Invalid value passed to prepend; please use prependMeta()'
431+
'Invalid value passed to prepend'
432432
);
433433
}
434434

@@ -438,14 +438,14 @@ public function prepend($value)
438438
/**
439439
* Set
440440
*
441-
* @param string $value
441+
* @param object $value
442442
* @throws Exception\InvalidArgumentException
443443
* @return void
444444
*/
445445
public function set($value)
446446
{
447447
if (! $this->isValid($value)) {
448-
throw new Exception\InvalidArgumentException('Invalid value passed to set; please use setMeta()');
448+
throw new Exception\InvalidArgumentException('Invalid value passed to set');
449449
}
450450

451451
$container = $this->getContainer();

0 commit comments

Comments
 (0)