Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kareiva opened this issue Aug 29, 2024 · 1 comment
Open

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

kareiva opened this issue Aug 29, 2024 · 1 comment

Comments

@kareiva
Copy link

kareiva commented Aug 29, 2024

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/

@kareiva
Copy link
Author

kareiva commented Aug 29, 2024

I am trying to follow the 4.X branch to see how much of that gets fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant