Skip to content

added phpstan extensions - #5153

Merged
kodiakhq[bot] merged 69 commits into
mainfrom
extensions
Jun 11, 2022
Merged

kodiakhq[bot] merged 69 commits into
mainfrom
extensions

Conversation

@staabm

@staabm staabm commented Jun 11, 2022 •

Copy link
Copy Markdown
Member

extracted re-usable parts from #4984

Comment thread composer.json
"redaxo/src/addons/users/lib/",
"redaxo/src/core/lib/"
"redaxo/src/core/lib/",
".tools/phpstan/"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damit man es letztendlich auch aus addons heraus nutzen kann, müssten diese klassen am ende auch im release enthalten sein.. was bisher nicht ist,.. aber erstmal ein phpstan addon bauen und dann schauen wir mal

return null;
}

private function resolveTypeFromString(string $vartype): ?Type

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ich denke diese 1:1 type mappings könnte man auch via conditional return type annotieren, sodass man eine extension nur noch für den advanced use case mit complexen array typen brauch... dann hätte man das type coverage auch ohne installierte redaxo psalm/phpstan plugins

@staabm
staabm marked this pull request as ready for review June 11, 2022 11:49
@staabm staabm added the automerge Automatisch PR rebasen und mergen label Jun 11, 2022
@kodiakhq
kodiakhq Bot merged commit 9a6d8c0 into main Jun 11, 2022
@kodiakhq
kodiakhq Bot deleted the extensions branch June 11, 2022 11:52
@rex-bot rex-bot removed the automerge Automatisch PR rebasen und mergen label Jun 11, 2022
staabm added a commit that referenced this pull request Jun 11, 2022
kodiakhq Bot pushed a commit that referenced this pull request Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants