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 phpdotnet/phd/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ErrorHandler
private bool $recursive = false;

public function __construct(
private OutputHandler $outputHandler
private readonly OutputHandler $outputHandler
) {}

public function handleError($errno, $msg, $file, $line) {
Expand Down
2 changes: 1 addition & 1 deletion phpdotnet/phd/IndexRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class IndexRepository
private array $examples = [];

public function __construct(
private \SQLite3 $db
private readonly \SQLite3 $db
) {}

public function init(): void {
Expand Down
6 changes: 3 additions & 3 deletions phpdotnet/phd/Options/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class Options_Handler implements Options_Interface
{
public function __construct(
private Config $config,
private Format_Factory $formatFactory,
private OutputHandler $outputHandler
private readonly Config $config,
private readonly Format_Factory $formatFactory,
private readonly OutputHandler $outputHandler
) {}

/**
Expand Down
2 changes: 1 addition & 1 deletion phpdotnet/phd/OutputHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OutputHandler
];

public function __construct(
private Config $config
private readonly Config $config
) {}

/**
Expand Down