Skip to content

[TASK] DPL-158: Upgrade to phpstan/phpstan:2.x#24

Merged
sbuerk merged 1 commit intomainfrom
dpl-158-streamline-static-code-analyzer
Mar 12, 2026
Merged

[TASK] DPL-158: Upgrade to phpstan/phpstan:2.x#24
sbuerk merged 1 commit intomainfrom
dpl-158-streamline-static-code-analyzer

Conversation

@sbuerk
Copy link
Member

@sbuerk sbuerk commented Mar 12, 2026

This change upgrades the static conde analyzer
PHPStan to v2.x along with used 3rd party
dependency saschaegerer/phpstan-typo3, which
basically completes the static code analyzing
stack.

Note

saschaegerer/phpstan-typo3 is required
using with two version to have TYPO3 v13
and v14 on board.

One phpstan ignore is used for a phpunit test
explicitly not checking for method result and
considered valid.

PHPStan configuration for TYPO3 v14 is prepared
albeit not active or usable directly yet.

Used command(s):

composer require --dev \
  'phpstan/phpstan':'^2.1.40' \
  'saschaegerer/phpstan-typo3':'^2.1.1 || ^3.0.1'

This change upgrades the static conde analyzer
`PHPStan` to `v2.x` along with used 3rd party
dependency `saschaegerer/phpstan-typo3`, which
basically completes the static code analyzing
stack.

> [!NOTE]
> `saschaegerer/phpstan-typo3` is required
> using with two version to have TYPO3 v13
> and v14 on board.

One phpstan ignore is used for a phpunit test
explicitly not checking for method result and
considered valid.

PHPStan configuration for TYPO3 v14 is prepared
albeit not active or usable directly yet.

Used command(s):

```shell
composer require --dev \
  'phpstan/phpstan':'^2.1.40' \
  'saschaegerer/phpstan-typo3':'^2.1.1 || ^3.0.1'
```
@sbuerk sbuerk merged commit a3d9817 into main Mar 12, 2026
3 checks passed
@sbuerk sbuerk deleted the dpl-158-streamline-static-code-analyzer branch March 12, 2026 14:37
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.

2 participants