1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 09:53:11 +01:00

removed ecs.php

This commit is contained in:
David Grudl 2021-12-12 03:52:38 +01:00
parent a0c86747dc
commit af33a354d6
2 changed files with 1 additions and 22 deletions

21
ecs.php
View File

@ -1,21 +0,0 @@
<?php
/**
* Rules for Nette Coding Standard
* https://github.com/nette/coding-standard
*/
declare(strict_types=1);
return function (Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(PRESET_DIR . '/php71.php');
$parameters = $containerConfigurator->parameters();
$parameters->set('skip', [
// issue #260
PhpCsFixer\Fixer\Operator\TernaryToNullCoalescingFixer::class => ['src/Dibi/HashMap.php'],
SlevomatCodingStandard\Sniffs\ControlStructures\RequireNullCoalesceOperatorSniff::class => ['src/Dibi/HashMap.php'],
]);
};

View File

@ -58,7 +58,7 @@ final class HashMap extends HashMapBase
{
if ($nm === '') {
$nm = "\xFF";
return isset($this->$nm) ? $this->$nm : $this->$nm = $this->getCallback()('');
return isset($this->$nm) && true ? $this->$nm : $this->$nm = $this->getCallback()('');
} else {
return $this->$nm = $this->getCallback()($nm);
}