Skip to content

Deprecation warnings using php:8.1-ubi9 as a builder image  #156

Description

@kareiva

Container platform

Red Hat OpenShift local

Version

4.16.7

OS version of the container image

UBI 9

Description

Few examples of deprecation warnings with PHP 8.1

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /opt/app-root/src/vendor/cakephp/cakephp/src/Utility/Text.php on line 232

Deprecated (8192): Cake\Mailer\Email implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) [CORE/src/Mailer/Email.php, line 50]

Deprecated (8192): Return type of Cake\Chronos\Traits\FactoryTrait::createFromFormat($format, $time, $tz = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [ROOT/vendor/cakephp/chronos/src/Traits/FactoryTrait.php, line 204]

Deprecated (8192): Return type of Cake\Chronos\Traits\FactoryTrait::getLastErrors() should either be compatible with DateTime::getLastErrors(): array|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [ROOT/vendor/cakephp/chronos/src/Traits/FactoryTrait.php, line 327]

Reproducer

Run OpenShift local

$ oc version
Client Version: 4.16.7
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: 4.16.7
Kubernetes Version: v1.29.7+6abe8a1

Create an empty test project and do:

oc new-app https://github.com/sclorg/cakephp-ex -n test

Check https://cakephp-ex-test.apps-crc.testing/

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions