Repository navigation
Conversation
…r latest versions
…ts in the dependency analysis
Mainbird
requested review from
IchigoNeko,
danmoebius,
hpa-move and
konradmichalik
and removed request for
a team
November 27, 2026 13:47
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Mainbird
commented
Nov 27, 2026
| * @param list<LifecyclePhase> $phases ordered full support → security → ELTS | ||
| */ | ||
| public function __construct( | ||
| public string $product, |
Contributor
Author
There was a problem hiding this comment.
@konradmichalik Could you review this change, please? The dead code detector reported $product as never read, so it is removed here. That changes the constructor of ComponentLifecycle, which has been released since 2.2.0. Within this repository only LifecycleDataProvider creates it, and a code search in the organisation finds no usage elsewhere.
Is it fine to remove it as internal value object, or should we keep the property and mark it @api instead?
konradmichalik
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shipmonk/dead-code-detectorwithkonradmichalik/phpstan-typo3-dead-codeinsideddev composer cgl sca. All 26 candidates from the trial run are resolved, the baseline stays emptyphpstan-typo3-preset0.7 without baseline entriesrector/rectorbelow 2.9, becausessch/typo3-rector3.17.0 still uses classes Rector 2.9 removed (fixed upstream in [BUGFIX] Ship own value objects removed in Rector 2.9 sabbelasichon/typo3-rector#4958, not released yet)Closes #39
Dead code detection
Tests/CGL/phpstan.neonincludes the detector rules, analysesext_localconf.phpas entry point and enablesmarkFluidAccess, because the Welcome widget cards and the branding are only read in Fluid templatessca:phppasses--autoload-file=../../vendor/autoload.php. Without it, PHPStan started fromTests/CGLdoes not see the TYPO3 parent classes and reports every ViewHelper, widget and middleware methodOptionsReader::path()andComponentLifecycle::$productare removed,AbstractRepositoryis marked@apias public extension pointPreset 0.7 findings
json_decode()throws on invalid JSON (HtmlMinifier, LifecycleDataProvider). The EndOfLife widget now logs a warning instead of failing silentlyUnescapedTagBuilder, without the blanket@phpstan-ignore-linegetPropertyFromAspect('date', 'full')JavaScriptMinifierintoJavaScriptWhitespace, protected by new characterization tests (JavaScriptMinifierTest, 30 cases). The date formatting ofLastDeploymentEventListenermoved into own methodsFurther changes
$path !== ''). It now shows the modification time ofindex.php(default fromext_localconf.php)ext_localconf.phpdeclares strict typestype_coverage.constant: 0override is removed: PHP 8.4 is required and the preset already sets 100phpunit/phpunitis required directly, the unit tests use it.composer.lockonly gets a new content hashext_localconf.php(sonetworkteam/sentry-clientcounts as used) and ignorestypo3/cms-adminpanelandtypo3/cms-linkvalidator, which are meant for the projects installing the toolboxTo discuss
Removing
ComponentLifecycle::$productchanges the constructor of a class released since 2.2.0. It is an internal value object of the EndOfLife widget, and a code search in the organisation finds no usage outside this repository. If it counts as public API, the commit can be reverted and the property marked@apiinstead.Checks
ddev composer cgl sca,lint,analyzeand Rector pass