address unit test failures due to strict typing

This commit is contained in:
El RIDO 2024-06-04 07:27:45 +02:00
parent cebc9acce6
commit 68ccaaace0
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ abstract class AbstractData
protected function getOpenSlot(array &$comments, $postdate)
{
if (array_key_exists($postdate, $comments)) {
$parts = explode('.', $postdate, 2);
$parts = explode('.', (string) $postdate, 2);
if (!array_key_exists(1, $parts)) {
$parts[1] = 0;
}

View file

@ -198,7 +198,7 @@ class I18nTest extends TestCase
$languageCount = 0;
foreach ($languageIterator as $file) {
++$languageCount;
$this->assertTrue(copy($file, $path . DIRECTORY_SEPARATOR . $file->getBasename()));
$this->assertTrue(copy($file->getPathname(), $path . DIRECTORY_SEPARATOR . $file->getBasename()));
}
I18nMock::resetPath($path);