Comments (3)
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.
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.
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)
- Feature Request: includeTagged HOT 6
- Packagist is not auto-updated HOT 1
- Feature Request: Ability to add tracking code HOT 2
- Deprecated dependency
- @package tag is not used anymore in 7.0.0-alpha HOT 8
- Not parsing generated files of laravel-ide-helper package HOT 1
- Store index as json HOT 1
- Composer can not find package apigen/apigen with version 7.0@alpha HOT 2
- Missing classes that should exist HOT 1
- feature request: namespace / project overview using `README.md`
- add ability to include custom javascript and css files. HOT 3
- Feature request: document @phpstan-type types HOT 2
- My @todo tags are ignored HOT 1
- @link and @see tags ignored (inline and regular) HOT 1
- Theme Documentations HOT 4
- strict_types declaration must be the very first statement in the script HOT 4
- No tags at all? HOT 4
- feature request: New config option to find the correct composer vendor dir
- ApGen web URL leads to some suspicious indonesian site HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apigen.