6.16.9
sbuerk
tagged this
02 Aug 16:11
With PHP8.3 the `ReflectionProperty->setValue()` method emits a E_DEPRECATED if a value should be set to a class and the context is not set as first argument. For instanciated classes the class needs to be provided, which is not possible for a static class or property. The solution for this is to use `null` as first argument as context object. That avoids the deprecation and keeps the backward compatibility. The testing-framework provides a tool to keep and handle static Framework state, which uses reflection under the hood and therefore needs the null context for `setValue()`. Releases: main, 7, 6
Assets 2
-
2023-08-02T16:11:00Z -
2023-08-02T16:11:00Z -