How to type hint Kirby::plugin?

I’d like to type hint Kirby Plugin or at least use a use statement in order to tell my editor (vscode) to not worry about. It is a little bit annoying to see those red errors. Any way to “surpress” it?

You can import App as Kirby.

<?php

use Kirby\Cms\App as Kirby;

Kirby::plugin('johann/tweaks', []);
1 Like
1 Like