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
4 changes: 2 additions & 2 deletions includes/Parsedown/Parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,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 @@ -850,7 +850,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
2 changes: 1 addition & 1 deletion includes/Wpup/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getMetadata() {
* @param Wpup_Cache $cache
* @return Wpup_Package
*/
public static function fromArchive($filename, $slug = null, Wpup_Cache $cache = null) {
public static function fromArchive($filename, $slug = null, ?Wpup_Cache $cache = null) {
$metaObj = new Wpup_ZipMetadataParser($slug, $filename, $cache);
$metadata = $metaObj->get();

Expand Down
2 changes: 1 addition & 1 deletion includes/Wpup/ZipMetadataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Wpup_ZipMetadataParser {
* @param string $filename
* @param Wpup_Cache $cache
*/
public function __construct($slug, $filename, Wpup_Cache $cache = null){
public function __construct($slug, $filename, ?Wpup_Cache $cache = null){
$this->slug = $slug;
$this->filename = $filename;
$this->cache = $cache;
Expand Down