From 56e1be65e1baf82de42b036785e9f941efe7b266 Mon Sep 17 00:00:00 2001 From: Wouter Wolters <typo3@wouterwolters.nl> Date: Wed, 28 Feb 2018 21:46:37 +0100 Subject: [PATCH] [TASK] Remove implement statement if parent already implements the interface Resolves: #84094 Releases: master Change-Id: I0fff99f75287fd5a43093b5df540cea040420d21 Reviewed-on: https://review.typo3.org/55955 Reviewed-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/backend/Classes/Http/RouteDispatcher.php | 3 +-- .../Classes/Template/Components/Buttons/InputButton.php | 2 +- .../Classes/Template/Components/Buttons/LinkButton.php | 2 +- .../Classes/Template/Components/Buttons/SplitButton.php | 2 +- typo3/sysext/core/Classes/Cache/Backend/FileBackend.php | 2 +- .../extbase/Classes/Property/TypeConverter/FileConverter.php | 2 +- .../Classes/Property/TypeConverter/FileReferenceConverter.php | 2 +- .../TypeConverter/FolderBasedFileCollectionConverter.php | 2 +- .../Classes/Property/TypeConverter/FolderConverter.php | 2 +- .../Classes/Property/TypeConverter/IntegerConverter.php | 2 +- .../Classes/Property/TypeConverter/ObjectConverter.php | 2 +- .../Property/TypeConverter/StaticFileCollectionConverter.php | 2 +- .../Classes/Property/TypeConverter/StringConverter.php | 2 +- .../sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php | 2 +- typo3/sysext/frontend/Classes/AdminPanel/CacheModule.php | 2 +- typo3/sysext/frontend/Classes/AdminPanel/EditModule.php | 2 +- typo3/sysext/frontend/Classes/AdminPanel/InfoModule.php | 2 +- typo3/sysext/frontend/Classes/AdminPanel/PreviewModule.php | 2 +- typo3/sysext/frontend/Classes/AdminPanel/TsDebugModule.php | 2 +- .../Classes/Configuration/Image/GraphicsMagickPreset.php | 4 +--- .../Classes/Configuration/Image/ImageMagick6Preset.php | 4 +--- .../Php/Matcher/MethodArgumentDroppedMatcher.php | 3 +-- .../Php/Matcher/MethodArgumentDroppedStaticMatcher.php | 3 +-- .../Php/Matcher/MethodArgumentRequiredMatcher.php | 3 +-- .../Php/Matcher/MethodArgumentRequiredStaticMatcher.php | 3 +-- .../Php/Matcher/MethodArgumentUnusedMatcher.php | 3 +-- 26 files changed, 26 insertions(+), 36 deletions(-) diff --git a/typo3/sysext/backend/Classes/Http/RouteDispatcher.php b/typo3/sysext/backend/Classes/Http/RouteDispatcher.php index 070202951586..c63e94c998d3 100644 --- a/typo3/sysext/backend/Classes/Http/RouteDispatcher.php +++ b/typo3/sysext/backend/Classes/Http/RouteDispatcher.php @@ -22,7 +22,6 @@ use TYPO3\CMS\Backend\Routing\Router; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\FormProtection\FormProtectionFactory; use TYPO3\CMS\Core\Http\Dispatcher; -use TYPO3\CMS\Core\Http\DispatcherInterface; use TYPO3\CMS\Core\Type\Bitmask\Permission; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\MathUtility; @@ -30,7 +29,7 @@ use TYPO3\CMS\Core\Utility\MathUtility; /** * Dispatcher which resolves a route to call a controller and method (but also a callable) */ -class RouteDispatcher extends Dispatcher implements DispatcherInterface +class RouteDispatcher extends Dispatcher { /** * Main method to resolve the route and checks the target of the route, and tries to call it. diff --git a/typo3/sysext/backend/Classes/Template/Components/Buttons/InputButton.php b/typo3/sysext/backend/Classes/Template/Components/Buttons/InputButton.php index b014a1e235cb..1703df20c3a1 100644 --- a/typo3/sysext/backend/Classes/Template/Components/Buttons/InputButton.php +++ b/typo3/sysext/backend/Classes/Template/Components/Buttons/InputButton.php @@ -33,7 +33,7 @@ namespace TYPO3\CMS\Backend\Template\Components\Buttons; * ->setTitle('Save'); * $buttonBar->addButton($saveButton, ButtonBar::BUTTON_POSITION_LEFT, 1); */ -class InputButton extends AbstractButton implements ButtonInterface +class InputButton extends AbstractButton { /** * Name Attribute of the button diff --git a/typo3/sysext/backend/Classes/Template/Components/Buttons/LinkButton.php b/typo3/sysext/backend/Classes/Template/Components/Buttons/LinkButton.php index 46e985592ae2..06c982881562 100644 --- a/typo3/sysext/backend/Classes/Template/Components/Buttons/LinkButton.php +++ b/typo3/sysext/backend/Classes/Template/Components/Buttons/LinkButton.php @@ -32,7 +32,7 @@ namespace TYPO3\CMS\Backend\Template\Components\Buttons; * ->setTitle('Save'); * $buttonBar->addButton($saveButton, ButtonBar::BUTTON_POSITION_LEFT, 1); */ -class LinkButton extends AbstractButton implements ButtonInterface +class LinkButton extends AbstractButton { /** * HREF attribute of the link diff --git a/typo3/sysext/backend/Classes/Template/Components/Buttons/SplitButton.php b/typo3/sysext/backend/Classes/Template/Components/Buttons/SplitButton.php index 71f3d8ec046a..28310fde5491 100644 --- a/typo3/sysext/backend/Classes/Template/Components/Buttons/SplitButton.php +++ b/typo3/sysext/backend/Classes/Template/Components/Buttons/SplitButton.php @@ -47,7 +47,7 @@ namespace TYPO3\CMS\Backend\Template\Components\Buttons; * ->addItem($saveAndCloseButton) * ->addItem($saveAndShowPageButton); */ -class SplitButton extends AbstractButton implements ButtonInterface +class SplitButton extends AbstractButton { /** * Internal var that determines whether the split button has received any primary diff --git a/typo3/sysext/core/Classes/Cache/Backend/FileBackend.php b/typo3/sysext/core/Classes/Cache/Backend/FileBackend.php index 044d7b55f9f6..60038ad85ad3 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/FileBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/FileBackend.php @@ -24,7 +24,7 @@ use TYPO3\CMS\Core\Utility\StringUtility; * This file is a backport from FLOW3 * @api */ -class FileBackend extends \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend implements \TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface, \TYPO3\CMS\Core\Cache\Backend\FreezableBackendInterface, \TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface +class FileBackend extends \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend implements \TYPO3\CMS\Core\Cache\Backend\FreezableBackendInterface, \TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface { const SEPARATOR = '^'; const EXPIRYTIME_FORMAT = 'YmdHis'; diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/FileConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/FileConverter.php index 868a16c6e76b..a418dce27b59 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/FileConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/FileConverter.php @@ -19,7 +19,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api experimental! This class is experimental and subject to change! */ -class FileConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileFolderConverter implements \TYPO3\CMS\Core\SingletonInterface +class FileConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileFolderConverter { /** * @var array<string> diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/FileReferenceConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/FileReferenceConverter.php index 6439c40a7be9..67d0565fb74c 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/FileReferenceConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/FileReferenceConverter.php @@ -19,7 +19,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api experimental! This class is experimental and subject to change! */ -class FileReferenceConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileFolderConverter implements \TYPO3\CMS\Core\SingletonInterface +class FileReferenceConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileFolderConverter { /** * @var array<string> diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderBasedFileCollectionConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderBasedFileCollectionConverter.php index 1f69ef119836..9038fdda3568 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderBasedFileCollectionConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderBasedFileCollectionConverter.php @@ -19,7 +19,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api experimental! This class is experimental and subject to change! */ -class FolderBasedFileCollectionConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileCollectionConverter implements \TYPO3\CMS\Core\SingletonInterface +class FolderBasedFileCollectionConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileCollectionConverter { /** * @var array<string> diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderConverter.php index 71c5e600d236..743c9ab17f59 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/FolderConverter.php @@ -19,7 +19,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api experimental! This class is experimental and subject to change! */ -class FolderConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileFolderConverter implements \TYPO3\CMS\Core\SingletonInterface +class FolderConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileFolderConverter { /** * @var array<string> diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/IntegerConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/IntegerConverter.php index 1f2cc59c6a02..302308da9733 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/IntegerConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/IntegerConverter.php @@ -25,7 +25,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api */ -class IntegerConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter implements \TYPO3\CMS\Core\SingletonInterface +class IntegerConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter { /** * @var array<string> diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/ObjectConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/ObjectConverter.php index badf8bcaff95..005b39b07bce 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/ObjectConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/ObjectConverter.php @@ -25,7 +25,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api */ -class ObjectConverter extends AbstractTypeConverter implements \TYPO3\CMS\Core\SingletonInterface +class ObjectConverter extends AbstractTypeConverter { /** * @var int diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/StaticFileCollectionConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/StaticFileCollectionConverter.php index 3b57fd6ea48a..eadea4527b6f 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/StaticFileCollectionConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/StaticFileCollectionConverter.php @@ -19,7 +19,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api experimental! This class is experimental and subject to change! */ -class StaticFileCollectionConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileCollectionConverter implements \TYPO3\CMS\Core\SingletonInterface +class StaticFileCollectionConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractFileCollectionConverter { /** * @var array<string> diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverter/StringConverter.php b/typo3/sysext/extbase/Classes/Property/TypeConverter/StringConverter.php index 49fb57763732..d147b1376739 100644 --- a/typo3/sysext/extbase/Classes/Property/TypeConverter/StringConverter.php +++ b/typo3/sysext/extbase/Classes/Property/TypeConverter/StringConverter.php @@ -25,7 +25,7 @@ namespace TYPO3\CMS\Extbase\Property\TypeConverter; * * @api */ -class StringConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter implements \TYPO3\CMS\Core\SingletonInterface +class StringConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter { /** * @var array<string> diff --git a/typo3/sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php b/typo3/sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php index 5633fddefa59..3f5b7cc1d106 100644 --- a/typo3/sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php +++ b/typo3/sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php @@ -120,7 +120,7 @@ use TYPO3\CMS\Form\ViewHelpers\RenderRenderableViewHelper; * **This class is NOT meant to be sub classed by developers.** * @internal */ -class FluidFormRenderer extends AbstractElementRenderer implements RendererInterface +class FluidFormRenderer extends AbstractElementRenderer { /** diff --git a/typo3/sysext/frontend/Classes/AdminPanel/CacheModule.php b/typo3/sysext/frontend/Classes/AdminPanel/CacheModule.php index d1d1507a0bd9..2e8326e33ca3 100644 --- a/typo3/sysext/frontend/Classes/AdminPanel/CacheModule.php +++ b/typo3/sysext/frontend/Classes/AdminPanel/CacheModule.php @@ -3,7 +3,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Frontend\AdminPanel; -class CacheModule extends AbstractModule implements AdminPanelModuleInterface +class CacheModule extends AbstractModule { /** * Creates the content for the "cache" section ("module") of the Admin Panel diff --git a/typo3/sysext/frontend/Classes/AdminPanel/EditModule.php b/typo3/sysext/frontend/Classes/AdminPanel/EditModule.php index 343dffb61980..a8939a5d9d20 100644 --- a/typo3/sysext/frontend/Classes/AdminPanel/EditModule.php +++ b/typo3/sysext/frontend/Classes/AdminPanel/EditModule.php @@ -24,7 +24,7 @@ use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; /** * Admin Panel Edit Module */ -class EditModule extends AbstractModule implements AdminPanelModuleInterface +class EditModule extends AbstractModule { /** * Creates the content for the "edit" section ("module") of the Admin Panel diff --git a/typo3/sysext/frontend/Classes/AdminPanel/InfoModule.php b/typo3/sysext/frontend/Classes/AdminPanel/InfoModule.php index 3a7f435c9b25..5fed7b4a455e 100644 --- a/typo3/sysext/frontend/Classes/AdminPanel/InfoModule.php +++ b/typo3/sysext/frontend/Classes/AdminPanel/InfoModule.php @@ -23,7 +23,7 @@ use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; /** * Admin Panel Info Module */ -class InfoModule extends AbstractModule implements AdminPanelModuleInterface +class InfoModule extends AbstractModule { /** * Creates the content for the "info" section ("module") of the Admin Panel diff --git a/typo3/sysext/frontend/Classes/AdminPanel/PreviewModule.php b/typo3/sysext/frontend/Classes/AdminPanel/PreviewModule.php index 15c54150d7f7..d8c1c195adb0 100644 --- a/typo3/sysext/frontend/Classes/AdminPanel/PreviewModule.php +++ b/typo3/sysext/frontend/Classes/AdminPanel/PreviewModule.php @@ -24,7 +24,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; /** * Admin Panel Preview Module */ -class PreviewModule extends AbstractModule implements AdminPanelModuleInterface +class PreviewModule extends AbstractModule { /** diff --git a/typo3/sysext/frontend/Classes/AdminPanel/TsDebugModule.php b/typo3/sysext/frontend/Classes/AdminPanel/TsDebugModule.php index a62258946963..b32a0db6f530 100644 --- a/typo3/sysext/frontend/Classes/AdminPanel/TsDebugModule.php +++ b/typo3/sysext/frontend/Classes/AdminPanel/TsDebugModule.php @@ -22,7 +22,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; /** * Admin Panel TypoScript Debug Module */ -class TsDebugModule extends AbstractModule implements AdminPanelModuleInterface +class TsDebugModule extends AbstractModule { /** diff --git a/typo3/sysext/install/Classes/Configuration/Image/GraphicsMagickPreset.php b/typo3/sysext/install/Classes/Configuration/Image/GraphicsMagickPreset.php index 6b801f16dc28..751781c05e0e 100644 --- a/typo3/sysext/install/Classes/Configuration/Image/GraphicsMagickPreset.php +++ b/typo3/sysext/install/Classes/Configuration/Image/GraphicsMagickPreset.php @@ -14,12 +14,10 @@ namespace TYPO3\CMS\Install\Configuration\Image; * The TYPO3 project - inspiring people to share! */ -use TYPO3\CMS\Install\Configuration; - /** * Preset for GraphicsMagick */ -class GraphicsMagickPreset extends AbstractImagePreset implements Configuration\PresetInterface +class GraphicsMagickPreset extends AbstractImagePreset { /** * @var string Name of preset diff --git a/typo3/sysext/install/Classes/Configuration/Image/ImageMagick6Preset.php b/typo3/sysext/install/Classes/Configuration/Image/ImageMagick6Preset.php index c6338ec23035..2e7dfff1598e 100644 --- a/typo3/sysext/install/Classes/Configuration/Image/ImageMagick6Preset.php +++ b/typo3/sysext/install/Classes/Configuration/Image/ImageMagick6Preset.php @@ -14,12 +14,10 @@ namespace TYPO3\CMS\Install\Configuration\Image; * The TYPO3 project - inspiring people to share! */ -use TYPO3\CMS\Install\Configuration; - /** * Preset for ImageMagick version 6 or higher */ -class ImageMagick6Preset extends AbstractImagePreset implements Configuration\PresetInterface +class ImageMagick6Preset extends AbstractImagePreset { /** * @var string Name of preset diff --git a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcher.php b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcher.php index e6157b302538..0f9adb309b93 100644 --- a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcher.php +++ b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcher.php @@ -17,7 +17,6 @@ namespace TYPO3\CMS\Install\ExtensionScanner\Php\Matcher; use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; -use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; /** * Find usages of method calls which changed signature and dropped arguments, @@ -25,7 +24,7 @@ use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; * This is a "weak" match since we're just testing for method name * but not connected class. */ -class MethodArgumentDroppedMatcher extends AbstractCoreMatcher implements CodeScannerInterface +class MethodArgumentDroppedMatcher extends AbstractCoreMatcher { /** * Prepare $this->flatMatcherDefinitions once and validate config diff --git a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcher.php b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcher.php index fffbbdf4a155..87fdc36bff2d 100644 --- a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcher.php +++ b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcher.php @@ -19,13 +19,12 @@ use PhpParser\Node; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Name\FullyQualified; -use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; /** * Find usages of static method calls which were removed / deprecated. * This is a "strong" match if class name is given and "weak" if not. */ -class MethodArgumentDroppedStaticMatcher extends AbstractCoreMatcher implements CodeScannerInterface +class MethodArgumentDroppedStaticMatcher extends AbstractCoreMatcher { /** * Prepare $this->flatMatcherDefinitions once and validate config diff --git a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcher.php b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcher.php index 1756348acf7e..5a7aa0710c0d 100644 --- a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcher.php +++ b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcher.php @@ -17,14 +17,13 @@ namespace TYPO3\CMS\Install\ExtensionScanner\Php\Matcher; use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; -use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; /** * Find usages of method calls which changed signature and added required arguments. * This is a "weak" match since we're just testing for method name * but not connected class. */ -class MethodArgumentRequiredMatcher extends AbstractCoreMatcher implements CodeScannerInterface +class MethodArgumentRequiredMatcher extends AbstractCoreMatcher { /** * Prepare $this->flatMatcherDefinitions once and validate config diff --git a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcher.php b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcher.php index 3525c413b298..11b3b4117d39 100644 --- a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcher.php +++ b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcher.php @@ -19,13 +19,12 @@ use PhpParser\Node; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Name\FullyQualified; -use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; /** * Find usages of static method calls which gained new mandatory arguments. * This is a "strong" match if class name is given and "weak" if not. */ -class MethodArgumentRequiredStaticMatcher extends AbstractCoreMatcher implements CodeScannerInterface +class MethodArgumentRequiredStaticMatcher extends AbstractCoreMatcher { /** * Prepare $this->flatMatcherDefinitions once and validate config diff --git a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcher.php b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcher.php index 7cca30b84275..f07fd29891af 100644 --- a/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcher.php +++ b/typo3/sysext/install/Classes/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcher.php @@ -18,7 +18,6 @@ namespace TYPO3\CMS\Install\ExtensionScanner\Php\Matcher; use PhpParser\Node; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\MethodCall; -use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; /** * Match method usages where arguments "in between" are unused but not given as "null": @@ -27,7 +26,7 @@ use TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface; * but called with: * ->foo('arg1', 'notNull', null, 'arg4'); */ -class MethodArgumentUnusedMatcher extends AbstractCoreMatcher implements CodeScannerInterface +class MethodArgumentUnusedMatcher extends AbstractCoreMatcher { /** * Prepare $this->flatMatcherDefinitions once and validate config -- GitLab