Skip to content

php 8.4 deprecations #9

Description

@tenzap

While running tests on CI with PHP 8.4, phpunit reports these deprecation warnings:

PHP Deprecated:  Kenjis\MonkeyPatch\MonkeyPatch::verifyInvokedMultipleTimes(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 95

Deprecated: Kenjis\MonkeyPatch\MonkeyPatch::verifyInvokedMultipleTimes(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 95

PHP Deprecated:  Kenjis\MonkeyPatch\MonkeyPatch::verifyInvoked(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 109
PHP Deprecated:  Kenjis\MonkeyPatch\MonkeyPatch::verifyInvokedOnce(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 121
PHP Deprecated:  Kenjis\MonkeyPatch\MonkeyPatch::verifyNeverInvoked(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 133
Deprecated: Kenjis\MonkeyPatch\MonkeyPatch::verifyInvoked(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 109

Deprecated: Kenjis\MonkeyPatch\MonkeyPatch::verifyInvokedOnce(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 121

Deprecated: Kenjis\MonkeyPatch\MonkeyPatch::verifyNeverInvoked(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/Kalkun/Kalkun/vendor/kenjis/ci-phpunit-test/application/tests/_ci_phpunit_test/patcher/MonkeyPatch.php on line 133

IIRC, the changes might break compatibility with php < 7 or something like that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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