FriendsOfREDAXO / FriendsOfREDAXO/minibar
CodeRabbit Finding bzgl. PhpStan-Konfig im Repo
- Dominant language
- PHP
- Stars
- 33
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
**Description / Beschreibung**
Code-Rabbit meldet im PR #109 ein Problem mit PhpStan. Die Methode `Minibar::getInstance` sei für PhpStan nicht auffindbar. Tatsächlich ist es kein Problem. Sowohl mein Editor (VSCode) als auch RexStan finden die Methode.
Code-Rabbit verweist auf die RexStan-Konfiguration des Repos:
> Moin, Minibar::getInstance() wird von PHPStan nicht erkannt — PHPStan-Konfiguration anpassen.
>
> PHPStan 2.1.54 meldet staticMethod.notFound für Minibar::getInstance() an drei Stellen (Zeilen 188, 200, 207). Der Grund: getInstance() wird durch die rex_singleton_trait bereitgestellt, und staticMethod.notFound ist nicht in phpstan.neon (Zeile 25–30) unter ignoreErrors aufgelistet.
>
> Das ist ein reines PHPStan-Analyseproblem — der Code funktioniert zur Laufzeit einwandfrei, da die Trait die Methode tatsächlich bereitstellt. Lösung: staticMethod.notFound zu den ignoreErrors hinzufügen oder sicherstellen, dass die Trait für PHPStan korrekt annotiert ist.
>
Ich kann es nicht einschätzen und mache hier ein Issue auf, damit die Erkenntnis nicht untergeht.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with phpstan.neon around lines 25–30 and inspect how the rex_singleton_trait provides Minibar::getInstance. Run the repository's PHPStan analysis and verify the three reported locations no longer produce staticMethod.notFound, while keeping runtime behavior unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 56/100