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:
parent
a0c86747dc
commit
af33a354d6
21
ecs.php
21
ecs.php
@ -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'],
|
||||
]);
|
||||
};
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user