mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
address unit test failures due to strict typing
This commit is contained in:
parent
cebc9acce6
commit
68ccaaace0
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user