Skip to content
Merged
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
10 changes: 5 additions & 5 deletions src/batch-box-spout/src/FlatFileReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ final class FlatFileReader implements
/**
* @var string
*/
private $type;
private string $type;

/**
* @var array
*/
private $options;
private array $options;

/**
* @var string
*/
private $headersMode;
private string $headersMode;

/**
* @var array|null
*/
private $headers;
private ?array $headers;

/**
* @var string|null
*/
private $filePath;
private ?string $filePath;

public function __construct(
string $type,
Expand Down
12 changes: 6 additions & 6 deletions src/batch-box-spout/src/FlatFileWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,32 @@ final class FlatFileWriter implements
/**
* @var string
*/
private $type;
private string $type;

/**
* @var array|null
*/
private $headers;
private ?array $headers;

/**
* @var WriterInterface|null
*/
private $writer;
private ?WriterInterface $writer = null;

/**
* @var bool
*/
private $headersAdded = false;
private bool $headersAdded = false;

/**
* @var string|null
*/
private $filePath;
private ?string $filePath;

/**
* @var array
*/
private $options;
private array $options;

public function __construct(string $type, array $headers = null, string $filePath = null, array $options = [])
{
Expand Down
34 changes: 17 additions & 17 deletions src/batch-doctrine-dbal/src/DoctrineDBALJobExecutionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,82 +23,82 @@ final class DoctrineDBALJobExecutionStorage implements QueryableJobExecutionStor
/**
* @var Connection
*/
private $connection;
private Connection $connection;

/**
* @var string
*/
private $table = 'yokai_batch_job_execution';
private string $table = 'yokai_batch_job_execution';

/**
* @var string
*/
private $idCol = 'id';
private string $idCol = 'id';

/**
* @var string
*/
private $jobNameCol = 'job_name';
private string $jobNameCol = 'job_name';

/**
* @var string
*/
private $statusCol = 'status';
private string $statusCol = 'status';

/**
* @var string
*/
private $parametersCol = 'parameters';
private string $parametersCol = 'parameters';

/**
* @var string
*/
private $startTimeCol = 'start_time';
private string $startTimeCol = 'start_time';

/**
* @var string
*/
private $endTimeCol = 'end_time';
private string $endTimeCol = 'end_time';

/**
* @var string
*/
private $summaryCol = 'summary';
private string $summaryCol = 'summary';

/**
* @var string
*/
private $failuresCol = 'failures';
private string $failuresCol = 'failures';

/**
* @var string
*/
private $warningsCol = 'warnings';
private string $warningsCol = 'warnings';

/**
* @var string
*/
private $childExecutionsCol = 'child_executions';
private string $childExecutionsCol = 'child_executions';

/**
* @var string
*/
private $logsCol = 'logs';
private string $logsCol = 'logs';

/**
* @var array
*/
private $types;
private array $types;

/**
* @var Schema
*/
private $schema;
private Schema $schema;

/**
* @var JobExecutionRowNormalizer|null
*/
private $normalizer;
private ?JobExecutionRowNormalizer $normalizer = null;

public function __construct(Connection $connection, array $options)
{
Expand Down Expand Up @@ -165,7 +165,7 @@ public function createSchemaSql(): array
$config = $this->connection->getConfiguration();
$previousFilter = $config->getSchemaAssetsFilter();

$config->setSchemaAssetsFilter(function ($asset) use ($previousFilter, $toSchema): bool {
$config->setSchemaAssetsFilter(static function ($asset) use ($previousFilter, $toSchema): bool {
$assetName = $asset instanceof AbstractAsset ? $asset->getName() : $asset;

return $toSchema->hasTable($assetName)
Expand Down
24 changes: 12 additions & 12 deletions src/batch-doctrine-dbal/src/JobExecutionRowNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,62 +23,62 @@ final class JobExecutionRowNormalizer
/**
* @var string
*/
private $idCol = 'id';
private string $idCol;

/**
* @var string
*/
private $jobNameCol = 'job_name';
private string $jobNameCol;

/**
* @var string
*/
private $statusCol = 'status';
private string $statusCol;

/**
* @var string
*/
private $parametersCol = 'parameters';
private string $parametersCol;

/**
* @var string
*/
private $startTimeCol = 'start_time';
private string $startTimeCol;

/**
* @var string
*/
private $endTimeCol = 'end_time';
private string $endTimeCol;

/**
* @var string
*/
private $summaryCol = 'summary';
private string $summaryCol;

/**
* @var string
*/
private $failuresCol = 'failures';
private string $failuresCol;

/**
* @var string
*/
private $warningsCol = 'warnings';
private string $warningsCol;

/**
* @var string
*/
private $childExecutionsCol = 'child_executions';
private string $childExecutionsCol;

/**
* @var string
*/
private $logsCol;
private string $logsCol;

/**
* @var string
*/
private $dateFormat;
private string $dateFormat;

public function __construct(
string $idCol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DoctrineDBALJobExecutionStorageTest extends TestCase
/**
* @var Connection
*/
private $connection;
private Connection $connection;

protected function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions src/batch-doctrine-orm/src/EntityReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ final class EntityReader implements ItemReaderInterface
/**
* @var ManagerRegistry
*/
private $doctrine;
private ManagerRegistry $doctrine;

/**
* @var string
*/
private $class;
private string $class;

public function __construct(ManagerRegistry $doctrine, string $class)
{
Expand Down
2 changes: 1 addition & 1 deletion src/batch-doctrine-orm/tests/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class User
{
public $id;
public string $id;

public function __construct(string $id)
{
Expand Down
8 changes: 4 additions & 4 deletions src/batch-doctrine-persistence/src/ObjectWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ final class ObjectWriter implements ItemWriterInterface
/**
* @var ManagerRegistry
*/
private $doctrine;
private ManagerRegistry $doctrine;

/**
* @var ObjectManager[]
*/
private $encounteredManagers = [];
private array $encounteredManagers = [];

/**
* @var ObjectManager[]
*/
private $encounteredClasses = [];
private array $encounteredClasses = [];

/**
* @var ObjectManager[]
*/
private $managerForClass = [];
private array $managerForClass = [];

public function __construct(ManagerRegistry $doctrine)
{
Expand Down
2 changes: 1 addition & 1 deletion src/batch-doctrine-persistence/tests/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Group
{
public $id;
public string $id;

public function __construct(string $id)
{
Expand Down
2 changes: 1 addition & 1 deletion src/batch-doctrine-persistence/tests/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Product
{
public $id;
public string $id;

public function __construct(string $id)
{
Expand Down
2 changes: 1 addition & 1 deletion src/batch-doctrine-persistence/tests/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class User
{
public $id;
public string $id;

public function __construct(string $id)
{
Expand Down
6 changes: 3 additions & 3 deletions src/batch-symfony-console/src/CommandRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ class CommandRunner
/**
* @var string
*/
private $consolePath;
private string $consolePath;

/**
* @var string
*/
private $logDir;
private string $logDir;

/**
* @var PhpExecutableFinder|null
*/
private $phpLocator;
private ?PhpExecutableFinder $phpLocator;

public function __construct(string $binDir, string $logDir, PhpExecutableFinder $phpLocator = null)
{
Expand Down
8 changes: 4 additions & 4 deletions src/batch-symfony-console/src/RunCommandJobLauncher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ final class RunCommandJobLauncher implements JobLauncherInterface
/**
* @var JobExecutionFactory
*/
private $jobExecutionFactory;
private JobExecutionFactory $jobExecutionFactory;

/**
* @var CommandRunner
*/
private $commandRunner;
private CommandRunner $commandRunner;

/**
* @var string
*/
private $logFilename;
private string $logFilename;

/**
* @var JobExecutionStorageInterface
*/
private $jobExecutionStorage;
private JobExecutionStorageInterface $jobExecutionStorage;

public function __construct(
JobExecutionFactory $jobExecutionFactory,
Expand Down
2 changes: 1 addition & 1 deletion src/batch-symfony-console/src/RunJobCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class RunJobCommand extends Command
/**
* @var JobLauncherInterface
*/
private $jobLauncher;
private JobLauncherInterface $jobLauncher;

/**
* @param JobLauncherInterface $jobLauncher
Expand Down
Loading