Skip to content

PHP Deprecation #4

@NathanLochala

Description

@NathanLochala

Describe the bug
Your code generates a deprecation warning in php 8.4.

[15-May-2025 12:34:51 UTC] PHP Deprecated:  Skywarth\ChaoticSchedule\RNGs\RNGFactory::getRngEngine(): Implicitly marking parameter $seed as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/skywarth/chaotic-schedule/src/RNGs/RNGFactory.php on line 32
[15-May-2025 12:34:51 UTC] PHP Deprecated:  Skywarth\ChaoticSchedule\RNGs\Adapters\AbstractRNGAdapter::__construct(): Implicitly marking parameter $seed as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/skywarth/chaotic-schedule/src/RNGs/Adapters/AbstractRNGAdapter.php on line 13
[15-May-2025 12:34:51 UTC] PHP Deprecated:  Skywarth\ChaoticSchedule\RNGs\Adapters\RandomNumberGeneratorAdapter::__construct(): Implicitly marking parameter $seed as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/skywarth/chaotic-schedule/src/RNGs/Adapters/RandomNumberGeneratorAdapter.php on line 9

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to 8.4.
  2. Run any artisan command.

Expected behavior
A warning should not display.

ENV (please complete the following information):

  • PHP 8.4 and Laravel 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions