Skip to content

Commit a3405a4

Browse files
committed
Fix deprecated code
1 parent c40ea67 commit a3405a4

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/App/ErrorHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class ErrorHandler
3131
E_USER_ERROR => 'User Error',
3232
E_USER_WARNING => 'User Warning',
3333
E_USER_NOTICE => 'User Notice',
34-
E_STRICT => 'Strict Notice',
3534
E_RECOVERABLE_ERROR => 'Recoverable Error',
3635
E_DEPRECATED => 'Deprecated Functionality',
3736
E_USER_DEPRECATED => 'User Deprecated Functionality',

src/Config/Validator/Result/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Error implements ResultInterface
3434
* @param string $suggestion
3535
* @param int|null $code
3636
*/
37-
public function __construct(string $message, string $suggestion = '', int $code = null)
37+
public function __construct(string $message, string $suggestion = '', int | null $code = null)
3838
{
3939
$this->message = $message;
4040
$this->suggestion = $suggestion;

src/Config/Validator/ResultFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function success(): Success
6464
* @param int|null $code
6565
* @return Error
6666
*/
67-
public function error(string $message, string $suggestion = '', int $code = null): Error
67+
public function error(string $message, string $suggestion = '', int | null $code = null): Error
6868
{
6969
return new Error($message, $suggestion, $code);
7070
}

src/Service/Adapter/CredisFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CredisFactory
2525
* @param string|null $password
2626
* @return Credis_Client
2727
*/
28-
public function create(string $server, int $port, int $database, string $password = null): Credis_Client
28+
public function create(string $server, int $port, int $database, string | null $password = null): Credis_Client
2929
{
3030
return new Credis_Client(
3131
$server,

0 commit comments

Comments
 (0)