Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Migration/App/ConsoleOutputFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ConsoleOutputFactory
public function create(
$verbosity = ConsoleOutput::VERBOSITY_NORMAL,
$decorated = null,
OutputFormatterInterface $formatter = null
?OutputFormatterInterface $formatter = null
) {
return new ConsoleOutput($verbosity, $decorated, $formatter);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/ResourceModel/Adapter/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function loadPage(
$pageSize,
$identityField = null,
$identityId = null,
\Zend_Db_Expr $condition = null
?\Zend_Db_Expr $condition = null
) {
$select = $this->getSelect();
$select->from($documentName, '*');
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/ResourceModel/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function loadPage(
$pageSize,
$identityField = null,
$identityId = null,
\Zend_Db_Expr $condition = null
?\Zend_Db_Expr $condition = null
);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/ResourceModel/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Record
* @param array $data
* @param Document $document
*/
public function __construct(array $data = [], Document $document = null)
public function __construct(array $data = [], ?Document $document = null)
{
$this->data = $data;
if ($document !== null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/ResourceModel/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function loadPage($documentName, $pageNumber)
* @param \Zend_Db_Expr $condition
* @return array
*/
public function getRecords($documentName, $pageNumber, $pageSize = null, \Zend_Db_Expr $condition = null)
public function getRecords($documentName, $pageNumber, $pageSize = null, ?\Zend_Db_Expr $condition = null)
{
$pageSize = $pageSize ?: $this->getPageSize($documentName) ;
$identityField = $this->getIdentityField($documentName);
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/Step/Customer/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function perform()
*/
private function transformDocumentRecords(
$sourceDocName,
array $attributesToSkip = null
array $attributesToSkip = []
) {
$sourceEntityDocuments = array_keys($this->readerGroups->getGroup('source_entity_documents'));
$sourceDocument = $this->source->getDocument($sourceDocName);
Expand Down