qossmic / deptrac

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

PHP Warning: Undefined array key "internal_tag" #1418

Closed rmikalkenas closed 5 months ago

rmikalkenas commented 5 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 5 months ago

Could you provide a reproducer?

rmikalkenas commented 5 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 5 months ago

Nice to see someone using Deptrac for so long 😅.

NoiseByNorthwest commented 5 months 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 5 months ago

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