qossmic / deptrac

Keep your architecture clean.
https://qossmic.github.io/deptrac
MIT License
2.59k stars 136 forks source link

PHP Warning: Undefined array key "internal_tag" #1418

Closed rmikalkenas closed 2 months ago

rmikalkenas commented 2 months ago

After the upgrade to v2, analysis outputs error:

PHP Warning:  Undefined array key "internal_tag" in /var/www/platform/vendor/qossmic/deptrac/src/Core/Analyser/EventHandler/DependsOnInternalToken.php on line 22

PHP: 8.3.7 Deleting cache file does not help

gennadigennadigennadi commented 2 months ago

Could you provide a reproducer?

rmikalkenas commented 2 months ago

Seems that the issue was with the root yaml key. I used parameters, once changed to deptrack error disappeared.

Before: image

After (working without errors): image

@gennadigennadigennadi I'm closing the issue as it's solved :+1:

gennadigennadigennadi commented 2 months ago

Nice to see someone using Deptrac for so long 😅.

NoiseByNorthwest commented 1 month ago

Seems that the issue was with the root yaml key. I used parameters, once changed to deptrack error disappeared.

Yes, but deptrac instead of deptrack will work better

gennadigennadigennadi commented 1 month ago

“Deptrack” was properly a typo. In the screenshot it’s spelled correctly.