Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2

Merged
merged 1 commit into from May 5, 2023
Merged

Fix #2

merged 1 commit into from May 5, 2023

Conversation

MartinMystikJonas
Copy link
Contributor

No description provided.

@vaielab vaielab merged commit 6c426d3 into vaielab:main May 5, 2023
@@ -15,7 +15,7 @@ public function __construct(private Engine $engine)
public function index(Request $request, Response $response): Response
{
$items = ['one', 'two', 'three', 'Héllo', 'a@\'t"esté'];
$string = $this->engine->renderToString('Test01.latte', ['items' => $items, 'title' => 'From Test01']);
$string = $this->engine->renderToString(__DIR__ . '/../templates/Test01.latte', ['items' => $items, 'title' => 'From Test01']);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 @vaielab has setup base path of templates in https://github.com/vaielab/SlimLattePhpStan/blob/main/public/index.php#L23, you are changing it here because of phpstan latte plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Maybe we should support configuration of tempalte base path/paths too in phpstan.neon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants