You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The badWords() function throws an exception in PHP 8.1
public function badWords()
{
// exception thrown here:
return collect($this->dictionary)->filter(function ($value) {
})->toArray();
}
ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
I tried to update illuminate/contracts and illuminate/support to v 8.78 but get this issue:
Problem 1
- illuminate/support v5.4.36 requires illuminate/contracts 5.4.* -> found illuminate/contracts[v5.4.0, ..., 5.4.x-dev] but it conflicts with your root composer.json require (^8.78).
- consoletvs/profanity 3.1.0 requires illuminate/support 5.4.|5.5.|5.6.|5.7.|5.8.|6.|7.|8. -> satisfiable by illuminate/support[v5.4.36].
- consoletvs/profanity is locked to version 3.1.0 and an update of this package was not requested.
The text was updated successfully, but these errors were encountered:
The badWords() function throws an exception in PHP 8.1
ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
I tried to update illuminate/contracts and illuminate/support to v 8.78 but get this issue:
Problem 1
- illuminate/support v5.4.36 requires illuminate/contracts 5.4.* -> found illuminate/contracts[v5.4.0, ..., 5.4.x-dev] but it conflicts with your root composer.json require (^8.78).
- consoletvs/profanity 3.1.0 requires illuminate/support 5.4.|5.5.|5.6.|5.7.|5.8.|6.|7.|8. -> satisfiable by illuminate/support[v5.4.36].
- consoletvs/profanity is locked to version 3.1.0 and an update of this package was not requested.
The text was updated successfully, but these errors were encountered: