forked from TYPO3-svn-archive/px_dbsequencer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] updates phpstan config and updates/ adapts several classes acc…
…ordingly [TASK] updates required packages in composer.json [TASK] updates version constraints in ext_emconf [TASK] updates CHANGELOG
- Loading branch information
Showing
7 changed files
with
118 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,59 @@ | ||
includes: | ||
- %currentWorkingDirectory%/.Build/vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- %currentWorkingDirectory%/.Build/vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- %currentWorkingDirectory%/.Build/vendor/friendsoftypo3/phpstan-typo3/extension.neon | ||
- ../.Build/vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- ../.Build/vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- ../.Build/vendor/friendsoftypo3/phpstan-typo3/extension.neon | ||
- ../.Build/vendor/spaze/phpstan-disallowed-calls/extension.neon | ||
- ../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon | ||
- ../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon | ||
- ../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon | ||
- ../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon | ||
#- ../.Build/vendor/tomasvotruba/cognitive-complexity/config/extension.neon | ||
- ../.Build/vendor/tomasvotruba/type-coverage/config/extension.neon | ||
|
||
parameters: | ||
level: 8 | ||
|
||
paths: | ||
- %currentWorkingDirectory%/Classes | ||
- ../Classes | ||
|
||
excludePaths: | ||
analyse: | ||
- %currentWorkingDirectory%/Classes/DataHandling | ||
- ../Classes/DataHandling | ||
|
||
# Allow instanceof checks, particularly in tests | ||
checkAlwaysTrueCheckTypeFunctionCall: false | ||
|
||
type_coverage: | ||
return: 98 | ||
param: 98 | ||
property: 95 | ||
constant: 0 # TODO: Set to 100, when PHP 8.3 is minimum requirement | ||
|
||
#cognitive_complexity: | ||
# class: 10 | ||
# function: 5 | ||
|
||
disallowedFunctionCalls: | ||
- | ||
function: | ||
- 'var_dump()' | ||
- 'xdebug_break()' | ||
- 'debug()' | ||
message: 'Use logging instead or remove if it was for debugging purposes.' | ||
- | ||
function: 'header()' | ||
message: 'Use PSR-7 API instead' | ||
disallowedStaticCalls: | ||
- | ||
method: | ||
- 'TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump()' | ||
- 'TYPO3\CMS\Core\Utility\DebugUtility::debug()' | ||
message: 'Use logging instead or remove if it was for debugging purposes.' | ||
disallowedSuperglobals: | ||
- | ||
superglobal: | ||
- '$_GET' | ||
- '$_POST' | ||
- '$_FILES' | ||
- '$_SERVER' | ||
message: 'Use PSR-7 API instead' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,10 @@ | |
|
||
$EM_CONF[$_EXTKEY] = [ | ||
'title' => 'Database Sequencer', | ||
'description' => 'With this extension you can ensure different unique keys for the configured tables (e.g.: pages, pages_language_overlay, tt_content)', | ||
'description' => 'With this extension you can ensure different unique keys for the configured tables (e.g.: pages, tt_content, ...)', | ||
'category' => 'be', | ||
'author' => 'Andre Wuttig, Axel Boeswetter, Thomas Griessbach', | ||
'author_email' => '[email protected], [email protected], griessbach@portrino.de', | ||
'author' => 'Andre Wuttig, Axel Böswetter, Thomas Grießbach', | ||
'author_email' => 'dev@portrino.de', | ||
'author_company' => 'portrino GmbH', | ||
'shy' => '', | ||
'priority' => '', | ||
|
@@ -30,7 +30,7 @@ | |
'version' => '0.13.0', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '13.0.0-13.99.99', | ||
'typo3' => '13.4.0-13.99.99', | ||
], | ||
'conflicts' => [ | ||
], | ||
|