Skip to content

Commit

Permalink
end does infact return CssElement all the time. fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed May 27, 2022
1 parent 6cc25f4 commit 1c87430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CssElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function css($selector): CssElement
*
* @return CssElement
*/
public function end(): ?CssElement
public function end(): CssElement
{
if (!isset($this->context)) {
throw new \LogicException('End of the context: no end() to be returned');
Expand Down

0 comments on commit 1c87430

Please sign in to comment.