Skip to content

Commit

Permalink
QA: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Feb 24, 2019
1 parent 3ec0f66 commit 29bbfe5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/ManagerRegistry.php
Expand Up @@ -31,6 +31,7 @@ public function __construct(Connection $connection, EntityManagerInterface $em,
* @param string $name
* @return object
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
*/
protected function getService($name)
{
Expand Down
3 changes: 2 additions & 1 deletion src/Mapping/ContainerEntityListenerResolver.php
Expand Up @@ -50,9 +50,10 @@ public function register($object): void
}

/**
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
* @param string $className
* @return object
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
*/
public function resolve($className)
{
Expand Down
8 changes: 4 additions & 4 deletions tests/cases/DI/OrmAnnotationsExtensionTest.php
Expand Up @@ -17,7 +17,7 @@ final class OrmAnnotationsExtensionTest extends TestCase

public function testDefaultCache(): void
{
$loader = new ContainerLoader(TEMP_PATH, TRUE);
$loader = new ContainerLoader(TEMP_PATH, true);
$class = $loader->load(function (Compiler $compiler): void {
$compiler->addExtension('dbal', new DbalExtension());
$compiler->addExtension('orm', new OrmExtension());
Expand All @@ -41,7 +41,7 @@ public function testNoCache(): void
$this->expectException(InvalidStateException::class);
$this->expectExceptionMessage('Cache or defaultCache must be provided');

$loader = new ContainerLoader(TEMP_PATH, TRUE);
$loader = new ContainerLoader(TEMP_PATH, true);
$class = $loader->load(function (Compiler $compiler): void {
$compiler->addExtension('dbal', new DbalExtension());
$compiler->addExtension('orm', new OrmExtension());
Expand All @@ -52,8 +52,8 @@ public function testNoCache(): void
'appDir' => __DIR__,
],
'orm.annotations' => [
'cache' => NULL,
'defaultCache' => NULL,
'cache' => null,
'defaultCache' => null,
],
]);
}, self::class . __METHOD__);
Expand Down

0 comments on commit 29bbfe5

Please sign in to comment.