Patrick Kusebauch
Patrick Kusebauch
A PR (https://github.com/qossmic/deptrac-src/pull/11) introduces `DependencyContext` to provide metadata about where the dependency occurred. It expands on the `DependencyType` and `FileOccurence` value objects. Would this work for you? If it provided...
> The same problem occurs (`arrayAlias` reported) when using PHPStan type like this: > > ``` > /** > * @phpstan-type arrayAlias array > */ > class SomeClass > {...
> `@psalm-import-type` has the same problem And I would propose the same solution. You should reference it with `@psalm-return`. This is a case where you would be always behind. As...
Hello, There is nothing wrong that I can see with the config. Can you provide a minimal reproducer in a stand-alone repository that I could debug? Also, for handling `vendor`...
Does https://github.com/qossmic/deptrac/blob/2.0.x/src%2FContract%2FConfig%2FDeptracConfig.php#L42 do what you need?
This is a current limitation of PHP. From a currently discussed RFC for PHP: https://wiki.php.net/rfc/global_function_parser_directive: > When calling functions from within a namespace, the parser does not know at compile...
```latte {varType Carrooi\Menu\IMenuItemsContainer $menu} {foreach $menu->getVisibleItemsOnMenu() as $itemsParent} {varType Carrooi\Menu\Menu|Carrooi\Menu\MenuItem $itemsParent} {continueIf $itemsParent->isAllowed() === false} {if $itemsParent->hasVisibleItemsOnMenu() === false} {$itemsParent->getRealTitle()} {else} {$itemsParent->getRealTitle()} {foreach $itemsParent->getVisibleItemsOnMenu() as $item} {varType Carrooi\Menu\MenuItem $item} {$item->getRealTitle()}...
The `menu.latte` serving as a template for user implementation has no mention of needing to filter in the template. It does not even make sense from the domain logic perspective....
For somebody, who stumble upon this as I did, here is a hacky workaround: ```php use Carrooi\Menu\IMenuItem; use Carrooi\Menu\LinkGenerator\ILinkGenerator; use Nette\Application\Application; use Nette\Application\UI\Presenter; final class NetteLinkGenerator implements ILinkGenerator { private...
@darkWolf-PR the answer about hiding the top category has 2 parts. The first is kind of about authorization - are you authorized to top category if you are not authorized...