[BUGFIX] Correct extension scanner matcher definitions 50/57950/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 17 Aug 2018 12:43:50 +0000 (14:43 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 17 Aug 2018 13:27:42 +0000 (15:27 +0200)
Add a couple of missing numberOfMandatoryArguments lines
to the MethodCallMatcher definitions to fix the extension
scanner that validates these files at runtime.

Change-Id: I029d16d4d63b275c134b0483200a716111c913c2
Resolves: #85893
Releases: master
Reviewed-on: https://review.typo3.org/57950
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php

index 020906b..325a225 100644 (file)
@@ -2845,72 +2845,84 @@ return [
         ],
     ],
     'TYPO3\CMS\Core\Core\Boostrap->configure' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85821-DeprecatedBoostrapMethods.rst',
         ],
     ],
     'TYPO3\CMS\Core\Core\Boostrap->setEarlyInstance' => [
+        'numberOfMandatoryArguments' => 2,
         'maximumNumberOfArguments' => 3,
         'restFiles' => [
             'Deprecation-85821-DeprecatedBoostrapMethods.rst',
         ],
     ],
     'TYPO3\CMS\Core\Core\Boostrap->getEarlyInstance' => [
+        'numberOfMandatoryArguments' => 1,
         'maximumNumberOfArguments' => 2,
         'restFiles' => [
             'Deprecation-85821-DeprecatedBoostrapMethods.rst',
         ],
     ],
     'TYPO3\CMS\Core\Core\Boostrap->getEarlyInstances' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85821-DeprecatedBoostrapMethods.rst',
         ],
     ],
     'TYPO3\CMS\Core\Core\Boostrap->initializePackageManagement' => [
+        'numberOfMandatoryArguments' => 1,
         'maximumNumberOfArguments' => 1,
         'restFiles' => [
             'Deprecation-85821-DeprecatedBoostrapMethods.rst',
         ],
     ],
     'TYPO3\CMS\Core\Core\Boostrap->setRequestType' => [
+        'numberOfMandatoryArguments' => 1,
         'maximumNumberOfArguments' => 1,
         'restFiles' => [
             'Deprecation-85821-DeprecatedBoostrapMethods.rst',
         ],
     ],
     'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->initFEuser' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst',
         ],
     ],
     'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->sendCacheHeaders' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst',
         ],
     ],
     'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->storeSessionData' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst',
         ],
     ],
     'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->hook_eofe' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst',
         ],
     ],
     'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->previewInfo' => [
-        'maximumNumberOfArguments' => 0,
+        'numberOfMandatoryArguments' => 0,
+        'maximumNumberOfArguments' => 1,
         'restFiles' => [
             'Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst',
         ],
     ],
     'TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->addTempContentHttpHeaders' => [
+        'numberOfMandatoryArguments' => 0,
         'maximumNumberOfArguments' => 0,
         'restFiles' => [
             'Deprecation-85878-EidUtilityAndVariousTSFEMethods.rst',