Closed nosilentesdblog closed 2 years ago
Thank you for posting this. I should have time to fix this later today. It looks like swe_set_ephe_path()
should support null
as an input parameter. So the extension will need to be updated accordingly.
https://github.com/cyjoelchen/php-sweph/blob/master/sweph/src/sweph.c#L1373
This issue has been fixed and released here:
Describe the bug The PHP 8.1 depcrecation warnings of
Passing null to non-nullable internal function parameter
is breaking the two testsswe_get_library_path
andswe_set_ephe_path
. The reason for this is that the deprecation warnings are treated as strings when calling the functions and thus are part of the test assertions.To Reproduce Steps to reproduce the behavior:
make test
Expected behavior Passing tests and not treating PHP deprecation warnings as part of input/output in assertions.
Environment: