Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Mar 16, 2019
2 parents 563a6d8 + 26d0a81 commit b84d4e8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/Bundle/BundleMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ class BundleMetadata
/**
* @var OrmMetadata
*/
protected $ormMetadata = null;
protected $ormMetadata;

/**
* @var OdmMetadata
*/
protected $odmMetadata = null;
protected $odmMetadata;

/**
* @var PhpcrMetadata
*/
protected $phpcrMetadata = null;
protected $phpcrMetadata;

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/BundleGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BundleGenerator implements GeneratorInterface

public function __construct()
{
$this->bundleTemplate = file_get_contents(__DIR__.'/../Resources/skeleton/bundle/bundle.mustache');
$this->bundleTemplate = (string) file_get_contents(__DIR__.'/../Resources/skeleton/bundle/bundle.mustache');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Generator/OdmGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class OdmGenerator implements GeneratorInterface

public function __construct()
{
$this->documentTemplate = file_get_contents(__DIR__.'/../Resources/skeleton/odm/document.mustache');
$this->documentRepositoryTemplate = file_get_contents(__DIR__.'/../Resources/skeleton/odm/repository.mustache');
$this->documentTemplate = (string) file_get_contents(__DIR__.'/../Resources/skeleton/odm/document.mustache');
$this->documentRepositoryTemplate = (string) file_get_contents(__DIR__.'/../Resources/skeleton/odm/repository.mustache');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Generator/OrmGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class OrmGenerator implements GeneratorInterface

public function __construct()
{
$this->entityTemplate = file_get_contents(__DIR__.'/../Resources/skeleton/orm/entity.mustache');
$this->entityRepositoryTemplate = file_get_contents(__DIR__.'/../Resources/skeleton/orm/repository.mustache');
$this->entityTemplate = (string) file_get_contents(__DIR__.'/../Resources/skeleton/orm/entity.mustache');
$this->entityRepositoryTemplate = (string) file_get_contents(__DIR__.'/../Resources/skeleton/orm/repository.mustache');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Generator/PHPCRGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class PHPCRGenerator implements GeneratorInterface

public function __construct()
{
$this->DocumentTemplate = file_get_contents(__DIR__.'/../Resources/skeleton/phpcr/document.mustache');
$this->DocumentRepositoryTemplate = file_get_contents(
$this->DocumentTemplate = (string) file_get_contents(__DIR__.'/../Resources/skeleton/phpcr/document.mustache');
$this->DocumentRepositoryTemplate = (string) file_get_contents(
__DIR__.'/../Resources/skeleton/phpcr/repository.mustache'
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Generator/SerializerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class SerializerGenerator implements GeneratorInterface

public function __construct()
{
$this->entitySerializerTemplate = file_get_contents(
$this->entitySerializerTemplate = (string) file_get_contents(
__DIR__.'/../Resources/skeleton/serializer/entity.mustache'
);
$this->documentSerializerTemplate = file_get_contents(
$this->documentSerializerTemplate = (string) file_get_contents(
__DIR__.'/../Resources/skeleton/serializer/document.mustache'
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Mapper/DoctrineCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DoctrineCollector
protected $overrides;

/**
* @var DoctrineCollector
* @var DoctrineCollector|null
*/
private static $instance;

Expand All @@ -65,7 +65,7 @@ public function __construct()
*/
public static function getInstance(): self
{
if (!self::$instance) {
if (null === self::$instance) {
self::$instance = new self();
}

Expand Down

0 comments on commit b84d4e8

Please sign in to comment.