Skip to content

Commit

Permalink
PHP 8.4 deprecates implicitly nullable params, make it explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Oct 26, 2024
1 parent 5b698fc commit cebaf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SecurityTxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function getEncryption(): array
* @param (callable(): void)|null $warnings
* @return void
*/
private function setValue(callable $setValue, callable $validator, callable $warnings = null): void
private function setValue(callable $setValue, callable $validator, ?callable $warnings = null): void
{
if ($this->validationLevel === SecurityTxtValidationLevel::AllowInvalidValuesSilently) {
$setValue();
Expand Down

0 comments on commit cebaf75

Please sign in to comment.