This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ public function set($value)
463
463
* Not valid in a non-HTML5 doctype
464
464
*
465
465
* @param string $charset
466
- * @param Exception\RuntimeException
466
+ * @param Exception\InvalidArgumentException
467
467
* @return HeadMeta Provides a fluent interface
468
468
*/
469
469
public function setCharset ($ charset )
@@ -475,7 +475,7 @@ public function setCharset($charset)
475
475
$ item ->modifiers = [];
476
476
477
477
if (! $ this ->isValid ($ item )) {
478
- throw new Exception \RuntimeException ('XHTML* doctype has no attribute charset; please use appendHttpEquiv() ' );
478
+ throw new Exception \InvalidArgumentException ('XHTML* doctype has no attribute charset; please use appendHttpEquiv() ' );
479
479
}
480
480
481
481
$ this ->set ($ item );
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ public function testCharsetPosition()
442
442
443
443
public function testCarsetWithXhtmlDoctypeGotException ()
444
444
{
445
- $ this ->expectException (Exception \RuntimeException ::class);
445
+ $ this ->expectException (Exception \InvalidArgumentException ::class);
446
446
$ this ->expectExceptionMessage ('XHTML* doctype has no attribute charset; please use appendHttpEquiv() ' );
447
447
448
448
$ view = new View ();
You can’t perform that action at this time.
0 commit comments