Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Recommit maybe a bug #475

Closed
wants to merge 1 commit into from
Closed

Recommit maybe a bug #475

wants to merge 1 commit into from

Conversation

liamhao
Copy link
Contributor

@liamhao liamhao commented Mar 19, 2021

Recommit, add string type to $message. This style of function declaration has been deprecated in PHP 8.0.

solve issue: Is this a BUG?

This style of function declaration [has been deprecated in PHP 8.0](https://www.php.net/manual/en/migration80.deprecated.php).
@liamhao liamhao changed the title Update Pusher.php Recommit maybe a bug Mar 19, 2021
@@ -68,7 +68,7 @@ protected function __construct(
bool $broadcast,
bool $assigned,
string $event,
$message = null,
string $message,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks it should be:

?string $message

null is still the default option

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what? Put ? In front of string ? Doesn't this report an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OHHH, I found it!. This is a new feature of PHP7.1. I had recommit a PR.

@liamhao liamhao closed this Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants