Skip to content

Commit fea37a4

Browse files
committed
Remove wrong type hint
1 parent d474bf4 commit fea37a4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/BbTag.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
namespace CsrDelft\bb;
33

4+
use Error;
45
use stdClass;
56

67
abstract class BbTag {
@@ -44,11 +45,10 @@ public function isAllowed()
4445
* NOTE: this consumes the input string.
4546
*
4647
* @param string[] $forbidden Tag names that cannot exist in this tag.
47-
* @return string|null
4848
*/
4949
protected function readContent($forbidden = [], $parse_bb = true) {
5050
if ($this->content != NULL)
51-
throw new \Error("Can not call readContent twice on the same tag");
51+
throw new Error("Can not call readContent twice on the same tag");
5252
$stoppers = $this->getStoppers();
5353
$parse_bb_state_before = $this->parser->bb_mode;
5454
$this->parser->bb_mode &= $parse_bb;
@@ -100,7 +100,6 @@ abstract public function render();
100100
/**
101101
* ParseLight defaults to parse
102102
*
103-
* @param array $arguments
104103
* @return mixed
105104
* @throws BbException
106105
*/

0 commit comments

Comments
 (0)