Skip to content

Conversation

@maltehuebner
Copy link
Contributor

Summary

  • Replace ReflectionClass with static::class and strrchr() to derive the short class name

Context

Same pattern as the ValueDataConverter fix (PR #459) — Reflection was used only to get the short class name, which is easily derived from the FQCN string.

Test plan

  • Verify pollution level identifiers still resolve correctly (pm10, no2, o3, etc.)

🤖 Generated with Claude Code

ReflectionClass was instantiated just to get the short class name.
Use static::class with strrchr() instead, which is simpler and avoids
the Reflection overhead.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant