Skip to content

Commit

Permalink
update deps & fix possible bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasPilar committed Feb 25, 2020
1 parent 9ca3d8a commit 82c17f0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion src/Adapter/Nette/DI/DoctrineExtension.php
Expand Up @@ -64,8 +64,14 @@ class DoctrineExtension extends CompilerExtension
{
private const DOCTRINE_SQL_PANEL = DoctrineSQLPanel::class;

/**
* @var string[]
*/
private $classMappings = [];

/**
* @var string[]
*/
private $entitySources = [];


Expand Down Expand Up @@ -286,7 +292,7 @@ public function afterCompile(ClassType $classType): void
}


protected function processSecondLevelCache($name, stdClass $config): void
protected function processSecondLevelCache(string $name, stdClass $config): void
{
if (! $config->enabled) {
return;
Expand Down
5 changes: 4 additions & 1 deletion src/Cache/DefaultCache.php
Expand Up @@ -142,7 +142,10 @@ protected function doGetStats()
}


private static function getClassFilename(string $className): string
/**
* @param mixed $className
*/
private static function getClassFilename($className): string
{
$reflection = new ReflectionClass($className);
return (string) $reflection->getFileName();
Expand Down
6 changes: 2 additions & 4 deletions tests/Source/DateTimeImmutableType.php
Expand Up @@ -49,9 +49,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)


/**
* @param DateTimeInterface|null $value
* @return string|null
* @throws ConversionException
* @inheritDoc
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
Expand All @@ -67,7 +65,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform)
$value = sprintf('of type %s', gettype($value));
}

throw ConversionException::conversionFailed($value, $this->getName());
throw ConversionException::conversionFailed((string) $value, $this->getName());
}


Expand Down

0 comments on commit 82c17f0

Please sign in to comment.