# How to type hint Kirby::plugin?

**URL:** <https://forum.getkirby.com/t/how-to-type-hint-kirby-plugin/23474>\
**Category:** Questions\
**Created:** [September 20, 2021, 8:17pm UTC](https://forum.getkirby.com/t/how-to-type-hint-kirby-plugin/23474 "2021-09-20T20:17:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glumanda](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/glumanda/32/5258_2.png) [@glumanda](https://forum.getkirby.com/u/glumanda)\
**Post date:** [September 20, 2021, 8:17pm UTC](https://forum.getkirby.com/t/how-to-type-hint-kirby-plugin/23474/1 "2021-09-20T20:17:04Z")

</div>

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?

 ![Screenshot 2021-09-20 at 22.16.16](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/c/ca25637091cc0d58adf59928a0695de940db5396.jpeg)

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [September 20, 2021, 9:12pm UTC](https://forum.getkirby.com/t/how-to-type-hint-kirby-plugin/23474/2 "2021-09-20T21:12:58Z")

</div>

You can import `App` as `Kirby`.

```php
<?php

use Kirby\Cms\App as Kirby;

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

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 20, 2021, 9:59pm UTC](https://forum.getkirby.com/t/how-to-type-hint-kirby-plugin/23474/3 "2021-09-20T21:59:54Z")

</div>

> **[PHP code typing with Kirby CMS](https://fvsch.com/kirby-typing)**
>
> Kirby 3 is built with PHP 7 and uses type annotations extensively, but this often won’t be reflected in an IDE. This post explores why, and what workarounds you can use.
