Skip to content

Ensure namespace->name is valid before using toString() - #59

Closed
schlessera wants to merge 1 commit into
psalm:masterfrom
schlessera:fix/58-tostring-on-null
Closed

schlessera wants to merge 1 commit into
psalm:masterfrom
schlessera:fix/58-tostring-on-null

Conversation

@schlessera

Copy link
Copy Markdown
Contributor

This is what I did to circumvent the issue described in #58

I have not done any extensive testing with this, and it might just be circumventing an actual issue detection like this, so please review carefully.

Fixes #58

@alies-dev

Copy link
Copy Markdown
Contributor

Thanks for the fix! It now conflicts with master, and skipping nameless blocks keeps the previous block's use statements in the global block, so hook docblocks there resolve names through them. #70 resets them instead and adds a test for both; you're credited as co-author there.

@alies-dev

Copy link
Copy Markdown
Contributor

Superseded by #70, merged now. Thanks again!

@alies-dev alies-dev closed this Nov 11, 2026
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.

Fatal error: calling toString() on null

3 participants