Skip to content

Commit

Permalink
Merge pull request #52 from pagemachine/phpstan-1.x
Browse files Browse the repository at this point in the history
Prepare for PHPStan 1.x
  • Loading branch information
mbrodala authored Nov 22, 2021
2 parents aeac39c + 4a0075e commit 3b0ad9e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/DataCollector/PagesDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getRecords()
/**
*
*
* @return \Generator
* @return \Generator|null
*/
protected function getPageRecords($pid = null)
{
Expand Down
4 changes: 4 additions & 0 deletions Classes/DataCollector/TCA/FormDataRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public function getRecord($uid, $table, $fieldlist)
];

try {
/**
* @throws DatabaseRecordException
* @throws DatabaseDefaultLanguageException
*/
$data = $this->formDataCompiler->compile($formDataCompilerInput);
//Be nice and catch all errors related to inconsistent data (sometimes strange things happen with extbase relations)
} catch (DatabaseRecordException $e) {
Expand Down
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
} catch (\TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException $e) {
$extensionConfiguration = [];
}
} elseif (!empty($_EXTCONF)) {
} else {
$extensionConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\TypoScriptService::class)
->convertTypoScriptArrayToPlainArray(unserialize($_EXTCONF));
}
Expand Down
3 changes: 1 addition & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ parameters:
- ext_localconf.php
- ext_tables.php
- Classes

excludes_analyse:
excludePaths:
- Classes/Command/SearchableCommandController.php

ignoreErrors:
Expand Down

0 comments on commit 3b0ad9e

Please sign in to comment.