Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psalm detect unused code #207

Merged
merged 25 commits into from
Aug 23, 2023
Merged

Psalm detect unused code #207

merged 25 commits into from
Aug 23, 2023

Conversation

spaze
Copy link
Owner

@spaze spaze commented Aug 23, 2023

Follow-up to #205 but now with enabled dead code detection, making it undead.

Blockers:

@spaze spaze self-assigned this Aug 23, 2023
spaze added 15 commits August 23, 2023 17:38
By either setting it to null making it exist, or by removing it making it not exist.
"Properties used in constructor only are considered unused. Use normal variables instead."
https://psalm.dev/docs/running_psalm/issues/UnusedProperty/
If some are not it doesn't really hurt to still have them available.
Replaced by a constructor property in commit 568a25d
The method stopped being used in 98f0dbe, it was used in TemplateFactory.php::createTemplate() but Latte\Engine::addFilterLoader() using it stopped being used.
@spaze spaze force-pushed the spaze/psalm-unused-code branch from 6656d45 to 226cd49 Compare August 23, 2023 15:53
@spaze spaze merged commit e5ec908 into main Aug 23, 2023
@spaze spaze deleted the spaze/psalm-unused-code branch August 23, 2023 15:59
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