Skip to content

Conversation

@MathiasVP
Copy link
Collaborator

While debugging another problem that @chanel-y reported I noticed that the member expression [DateTime]::$x doesn't have a toString since the toString is defined in terms of $x being a constant string (which it clearly isn't in this case).

So when there's no constant string representing the field we just define toString to be ...

Commit-by-commit review recommended since I also did a autoformat in commit 1

@MathiasVP MathiasVP changed the title Fix to string on unknown static read PS: Fix toString on unknown static field access Apr 17, 2025
@chanel-y chanel-y merged commit 03bce1c into main Apr 18, 2025
3 checks passed
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.

3 participants