Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Mark param explicitly as nullable
- Deprecated in PHP 8.4
  • Loading branch information
sukhwinder33445 committed Jan 14, 2026
commit 8a3adf635f1a0455ccba0067119e0f6984e33ae0
2 changes: 1 addition & 1 deletion application/forms/Jobs/JobConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class JobConfigForm extends CompatForm
/** @var ?X509Job */
protected $job;

public function __construct(X509Job $job = null)
public function __construct(?X509Job $job = null)
{
$this->job = $job;

Expand Down
2 changes: 1 addition & 1 deletion application/forms/Jobs/ScheduleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ScheduleForm extends CompatForm
/** @var ScheduleElement */
protected $scheduleElement;

public function __construct(X509Schedule $schedule = null)
public function __construct(?X509Schedule $schedule = null)
{
$this->schedule = $schedule;

Expand Down
4 changes: 2 additions & 2 deletions library/X509/Hook/SniHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public static function getAll()
/**
* Aggregate pairs of ip => hostname
*
* @param Filter $filter
* @param ?Filter $filter
*
* @return \Generator
*/
abstract public function getHosts(Filter $filter = null);
abstract public function getHosts(?Filter $filter = null);
}
2 changes: 1 addition & 1 deletion library/X509/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Job implements Task
* @param array<string, array<string>> $snimap The configured SNI maps to be used by this job
* @param ?Schedule $schedule
*/
public function __construct(string $name, array $cidrs, array $ports, array $snimap, Schedule $schedule = null)
public function __construct(string $name, array $cidrs, array $ports, array $snimap, ?Schedule $schedule = null)
{
$this->name = $name;
$this->db = Database::get();
Expand Down