diff --git a/Log.php b/Log.php index c3a27e4..595464b 100755 --- a/Log.php +++ b/Log.php @@ -237,7 +237,7 @@ public function flush(): bool * Abstract implementation of the log() method. * @since Log 1.0 */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { return false; } diff --git a/Log/composite.php b/Log/composite.php index 2be40ec..8f637a3 100755 --- a/Log/composite.php +++ b/Log/composite.php @@ -129,7 +129,7 @@ public function flush(): bool * * @return boolean True if the entry is successfully logged. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/console.php b/Log/console.php index 39272a2..dc4f014 100755 --- a/Log/console.php +++ b/Log/console.php @@ -181,7 +181,7 @@ public function flush(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/daemon.php b/Log/daemon.php index 4cc12a4..98cb769 100755 --- a/Log/daemon.php +++ b/Log/daemon.php @@ -149,7 +149,7 @@ public function close(): bool * LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, * and LOG_DEBUG. The default is LOG_INFO. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/display.php b/Log/display.php index d9748dd..9315a19 100755 --- a/Log/display.php +++ b/Log/display.php @@ -139,7 +139,7 @@ public function close(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/error_log.php b/Log/error_log.php index dd91e02..b677ad2 100755 --- a/Log/error_log.php +++ b/Log/error_log.php @@ -134,7 +134,7 @@ public function close(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/file.php b/Log/file.php index 195f5ed..9243d5c 100755 --- a/Log/file.php +++ b/Log/file.php @@ -257,7 +257,7 @@ public function flush(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/firebug.php b/Log/firebug.php index d3db734..7ab071c 100755 --- a/Log/firebug.php +++ b/Log/firebug.php @@ -165,7 +165,7 @@ public function flush(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/mail.php b/Log/mail.php index f0cc6f3..5d56c84 100755 --- a/Log/mail.php +++ b/Log/mail.php @@ -249,7 +249,7 @@ public function flush(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/mcal.php b/Log/mcal.php index 7c48f04..0b9bb8b 100755 --- a/Log/mcal.php +++ b/Log/mcal.php @@ -116,7 +116,7 @@ public function close(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/mdb2.php b/Log/mdb2.php index 9d2ad80..5bcfefe 100755 --- a/Log/mdb2.php +++ b/Log/mdb2.php @@ -223,7 +223,7 @@ public function setIdent(string $ident): void * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/sql.php b/Log/sql.php index 042c415..eb0f15e 100755 --- a/Log/sql.php +++ b/Log/sql.php @@ -217,7 +217,7 @@ public function setIdent(string $ident): void * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/sqlite.php b/Log/sqlite.php index 8806cec..910253d 100755 --- a/Log/sqlite.php +++ b/Log/sqlite.php @@ -150,7 +150,7 @@ public function close(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/syslog.php b/Log/syslog.php index bbd15ab..70a482d 100755 --- a/Log/syslog.php +++ b/Log/syslog.php @@ -151,7 +151,7 @@ public function close(): bool * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) { diff --git a/Log/win.php b/Log/win.php index 3d9ab69..f4a12e3 100755 --- a/Log/win.php +++ b/Log/win.php @@ -238,7 +238,7 @@ private function writeln(string $line): void * PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG. * @return boolean True on success or false on failure. */ - public function log($message, int $priority = null): bool + public function log($message, ?int $priority = null): bool { /* If a priority hasn't been specified, use the default value. */ if ($priority === null) {