Skip to content
Snippets Groups Projects

Issue #3517125: Fix coding standard (PHPStan) issues and test failures

5 files
+ 10
10
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -190,7 +190,7 @@ abstract class ExportPluginBase extends PluginBase implements ExportPluginInterf
@@ -190,7 +190,7 @@ abstract class ExportPluginBase extends PluginBase implements ExportPluginInterf
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function setLogger(LoggerInterface $logger = NULL): void {
public function setLogger(?LoggerInterface $logger = NULL): void {
$this->logger = $logger;
$this->logger = $logger;
}
}
@@ -773,7 +773,7 @@ abstract class ExportPluginBase extends PluginBase implements ExportPluginInterf
@@ -773,7 +773,7 @@ abstract class ExportPluginBase extends PluginBase implements ExportPluginInterf
* @return string
* @return string
* The ID of a content entity migration plugin definition.
* The ID of a content entity migration plugin definition.
*/
*/
private function getMigrationId(string $entity_type_id, string $bundle = NULL): string {
private function getMigrationId(string $entity_type_id, ?string $bundle = NULL): string {
return implode('_', array_filter([
return implode('_', array_filter([
$this->configuration['id-prefix'],
$this->configuration['id-prefix'],
$entity_type_id,
$entity_type_id,
@@ -836,7 +836,7 @@ abstract class ExportPluginBase extends PluginBase implements ExportPluginInterf
@@ -836,7 +836,7 @@ abstract class ExportPluginBase extends PluginBase implements ExportPluginInterf
* The current progress. If this is NULL, then the cache will be dropped
* The current progress. If this is NULL, then the cache will be dropped
* without any condition.
* without any condition.
*/
*/
protected function flushEntityMemoryCache(int $progress = NULL): void {
protected function flushEntityMemoryCache(?int $progress = NULL): void {
if (
if (
$progress === NULL ||
$progress === NULL ||
fmod((float) $progress, 10.0) < 0.01
fmod((float) $progress, 10.0) < 0.01
Loading