Skip to content

Commit ce01fbc

Browse files
seamuslee001jparise
authored andcommitted
PHP8.4 Fix Implicitly nullable parameter deprecation
1 parent e4d272a commit ce01fbc

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function flush(): bool
237237
* Abstract implementation of the log() method.
238238
* @since Log 1.0
239239
*/
240-
public function log($message, int $priority = null): bool
240+
public function log($message, ?int $priority = null): bool
241241
{
242242
return false;
243243
}

Log/composite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function flush(): bool
129129
*
130130
* @return boolean True if the entry is successfully logged.
131131
*/
132-
public function log($message, int $priority = null): bool
132+
public function log($message, ?int $priority = null): bool
133133
{
134134
/* If a priority hasn't been specified, use the default value. */
135135
if ($priority === null) {

Log/console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function flush(): bool
181181
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
182182
* @return boolean True on success or false on failure.
183183
*/
184-
public function log($message, int $priority = null): bool
184+
public function log($message, ?int $priority = null): bool
185185
{
186186
/* If a priority hasn't been specified, use the default value. */
187187
if ($priority === null) {

Log/daemon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function close(): bool
149149
* LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO,
150150
* and LOG_DEBUG. The default is LOG_INFO.
151151
*/
152-
public function log($message, int $priority = null): bool
152+
public function log($message, ?int $priority = null): bool
153153
{
154154
/* If a priority hasn't been specified, use the default value. */
155155
if ($priority === null) {

Log/display.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function close(): bool
139139
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
140140
* @return boolean True on success or false on failure.
141141
*/
142-
public function log($message, int $priority = null): bool
142+
public function log($message, ?int $priority = null): bool
143143
{
144144
/* If a priority hasn't been specified, use the default value. */
145145
if ($priority === null) {

Log/error_log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function close(): bool
134134
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
135135
* @return boolean True on success or false on failure.
136136
*/
137-
public function log($message, int $priority = null): bool
137+
public function log($message, ?int $priority = null): bool
138138
{
139139
/* If a priority hasn't been specified, use the default value. */
140140
if ($priority === null) {

Log/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function flush(): bool
257257
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
258258
* @return boolean True on success or false on failure.
259259
*/
260-
public function log($message, int $priority = null): bool
260+
public function log($message, ?int $priority = null): bool
261261
{
262262
/* If a priority hasn't been specified, use the default value. */
263263
if ($priority === null) {

Log/firebug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function flush(): bool
165165
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
166166
* @return boolean True on success or false on failure.
167167
*/
168-
public function log($message, int $priority = null): bool
168+
public function log($message, ?int $priority = null): bool
169169
{
170170
/* If a priority hasn't been specified, use the default value. */
171171
if ($priority === null) {

Log/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function flush(): bool
249249
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
250250
* @return boolean True on success or false on failure.
251251
*/
252-
public function log($message, int $priority = null): bool
252+
public function log($message, ?int $priority = null): bool
253253
{
254254
/* If a priority hasn't been specified, use the default value. */
255255
if ($priority === null) {

Log/mcal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function close(): bool
116116
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
117117
* @return boolean True on success or false on failure.
118118
*/
119-
public function log($message, int $priority = null): bool
119+
public function log($message, ?int $priority = null): bool
120120
{
121121
/* If a priority hasn't been specified, use the default value. */
122122
if ($priority === null) {

0 commit comments

Comments
 (0)