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

[TASK] Integrate phpstan #3639

Merged
merged 9 commits into from May 26, 2023
Merged

[TASK] Integrate phpstan #3639

merged 9 commits into from May 26, 2023

Conversation

bmack
Copy link
Collaborator

@bmack bmack commented May 16, 2023

What this pr does

This change adds phpstan for static code analysis.

The current code base (especially the tests),
define wrong phpdoc comments, which is the main work to achieve in this patch.

In order to make tests / mocking behaviour easier, the phpunit extension is also installed.

For this reason, the "getDumbMock" need to be
removed for "createMock" from phpunit.

How to test

The test can be executed like this:

  • composer install --prefer-source
  • composer tests:phpstan

Fixes: #3632

bmack and others added 7 commits May 16, 2023 11:11
This change adds phpstan for static code analysis.

The current code base (especially the tests),
define wrong phpdoc comments, which is the main work
to achieve in this patch.

In order to make tests / mocking behaviour easier,
the phpunit extension is also installed.

For this reason, the "getDumbMock" need to be
removed for "createMock" from phpunit.

The test can be executed like this:

* composer install --prefer-source
* composer tests:phpstan
@dkd-kaehm dkd-kaehm merged commit 950b05e into TYPO3-Solr:main May 26, 2023
6 of 8 checks passed
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
dkd-friedrich pushed a commit to dkd-friedrich/ext-solr that referenced this pull request Feb 29, 2024
dkd-friedrich pushed a commit to dkd-friedrich/ext-solr that referenced this pull request Feb 29, 2024
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.

[TASK:T12] Replace Scrutinizer with PhpStan
2 participants