Giter VIP home page Giter VIP logo

Comments (3)

JanTvrdik avatar JanTvrdik commented on June 13, 2024

ShouldNotHappenException has __construct() with @api, so that seems fine to me.


The analysis filter used to completely exclude class-likes from index, but it resulted in lot of "missing symbol" errors, so the behavior was changed 16 days ago to only mark them as non-primary which affects rendering.

The primary flag is currently used to avoid rendering source code of non-primary files and hiding them in menu. But there is no control over this. So as the first step I added Renderer\Filter which controls which pages are rendered.

from apigen.

ondrejmirtes avatar ondrejmirtes commented on June 13, 2024

Awesome, it works really well for me! phpstan/phpstan-src@326fbf6

So now I'd just wish for being able to completely hide some symbols from trees like here https://apiref.phpstan.org/1.8.x/PHPStan.DependencyInjection.Container.html (NetteContainer and MemoizingContainer). I understand it's not trivial because in some cases the filtered-out pages are actually parents of the current page (https://apiref.phpstan.org/1.8.x/PHPStan.Testing.PHPStanTestCase.html) so I can live with the current status too.

The search problem solved itself by filtering the rendered pages, I'm quite happy with the results now. Although for some cases it could be improved - for example if I search for templatetype, there's an interface with this exact name (https://apiref.phpstan.org/1.8.x/PHPStan.Type.Generic.TemplateType.html) but the autocomplete prioritizes other things. But it's not that important :)

Feel free to close this issue, thank you very much, I really appreciate it!

from apigen.

ondrejmirtes avatar ondrejmirtes commented on June 13, 2024

But I think it'd make sense to filter out not-rendered children in trees like here: https://apiref.phpstan.org/1.8.x/PHPStan.Rules.Rule.html

from apigen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.