Skip to content

Commit

Permalink
Allow latte 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Mar 11, 2019
1 parent 24cbdb3 commit a1cedb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"php": ">= 7.1",
"nette/di": "~2.4.10",
"nette/utils": "~2.5.2",
"latte/latte": "~2.4.7",
"latte/latte": "~2.4.7|~2.5.1",
"erusev/parsedown-extra": "^0.7.1",
"erusev/parsedown": "~1.7.1"
},
Expand Down Expand Up @@ -51,5 +51,10 @@
"phpstan": [
"temp/phpstan/vendor/bin/phpstan analyse -l max -c phpstan.neon src"
]
},
"extra": {
"branch-alias": {
"dev-master": "1.4.x-dev"
}
}
}
5 changes: 2 additions & 3 deletions src/ParsedownFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Contributte\Parsedown;

use Latte\Runtime\FilterInfo;
use Latte\Runtime\Html;

class ParsedownFilter
{
Expand All @@ -19,9 +18,9 @@ public function __construct(ParsedownExtraAdapter $adapter)
/**
* @param mixed $text
*/
public function apply(FilterInfo $info, $text): Html
public function apply(FilterInfo $info, $text): string
{
return new Html($this->adapter->process($text));
return $this->adapter->process($text);
}

}

0 comments on commit a1cedb0

Please sign in to comment.