Skip to content

Commit

Permalink
Merge pull request #1048 from Sualiu/canary
Browse files Browse the repository at this point in the history
[PHP 8.4] 修复隐式可空参数废弃警告 (#1047)
  • Loading branch information
mirai-mamori authored Jan 11, 2025
2 parents 296f2ff + 9ee536c commit b95909c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion update-checker/Puc/v5p1/StateStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getUpdate() {
* @param Update|null $update
* @return $this
*/
public function setUpdate(Update $update = null) {
public function setUpdate(?Update $update = null) {
$this->lazyLoad();
$this->update = $update;
return $this;
Expand Down
2 changes: 1 addition & 1 deletion update-checker/Puc/v5p1/UpdateChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ protected function filterUpdateResult($update, $httpResult = null) {
*
* @param Metadata|null $update
*/
protected function fixSupportedWordpressVersion(Metadata $update = null) {
protected function fixSupportedWordpressVersion(?Metadata $update = null) {
if ( !isset($update->tested) || !preg_match('/^\d++\.\d++$/', $update->tested) ) {
return;
}
Expand Down
6 changes: 3 additions & 3 deletions update-checker/vendor/ParsedownModern.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ protected function blockRule($Line)
#
# Setext

protected function blockSetextHeader($Line, array $Block = null)
protected function blockSetextHeader($Line, ?array $Block = null)
{
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
{
Expand Down Expand Up @@ -786,7 +786,7 @@ protected function blockReference($Line)
#
# Table

protected function blockTable($Line, array $Block = null)
protected function blockTable($Line, ?array $Block = null)
{
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
{
Expand Down Expand Up @@ -1535,4 +1535,4 @@ static function instance($name = 'default')
'wbr', 'span',
'time',
);
}
}

0 comments on commit b95909c

Please sign in to comment.