Actions
Bug #92181
closedTYPO3\CMS\Core\Configuration\ExtensionConfiguration->set paremter; anotation for third parameter wrong
Start date:
2020-09-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
Is
/** * @param string $extension Extension name * @param string $path Configuration path to set - eg. "featureCategory/coolThingIsEnabled" * @param null $value The value. If null, unset the path * @internal */ public function set(string $extension, string $path = '', $value = null): void {
should be
/** * @param string $extension Extension name * @param string $path Configuration path to set - eg. "featureCategory/coolThingIsEnabled" * @param string|null $value The value. If null, unset the path * @internal */ public function set(string $extension, string $path = '', ?string $value = null): void {
Triggers PHP Stan violation:
Parameter #3 $value of method TYPO3\CMS\Core\Configuration\ExtensionConfiguration::set() expects null, string given.
Actions