mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
removed ecs.php
This commit is contained in:
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 === '') {
|
if ($nm === '') {
|
||||||
$nm = "\xFF";
|
$nm = "\xFF";
|
||||||
return isset($this->$nm) ? $this->$nm : $this->$nm = $this->getCallback()('');
|
return isset($this->$nm) && true ? $this->$nm : $this->$nm = $this->getCallback()('');
|
||||||
} else {
|
} else {
|
||||||
return $this->$nm = $this->getCallback()($nm);
|
return $this->$nm = $this->getCallback()($nm);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user