Skip to content

Commit 8366c51

Browse files
committed
chore(cs): use stricter rule set
1 parent 6837963 commit 8366c51

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

ecs.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
]);
2828

2929
// A. full sets
30-
$ecsConfig->sets([SetList::PSR_12, SetList::SPACES]);
30+
$ecsConfig->sets([SetList::PSR_12, SetList::SPACES, SetList::STRICT]);
3131

3232
$ecsConfig->rule(NotOperatorWithSuccessorSpaceFixer::class);
3333
$ecsConfig->rule(ArraySyntaxFixer::class);
@@ -40,11 +40,10 @@
4040
]);
4141
$ecsConfig->rule(NoEmptyPhpdocFixer::class);
4242
$ecsConfig->rule(NoUnusedImportsFixer::class);
43-
$ecsConfig->rule(DeclareStrictTypesFixer::class);
4443
$ecsConfig->ruleWithConfiguration(FinalInternalClassFixer::class, [
4544
'annotation_exclude' => ['@not-fix', '@internal'],
4645
'annotation_include' => [],
47-
'consider_absent_docblock_as_internal_class' => \true
46+
'consider_absent_docblock_as_internal_class' => true
4847
]);
4948
$ecsConfig->ruleWithConfiguration(ForbiddenFunctionsSniff::class, [
5049
'forbiddenFunctions' => [

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@
1717
use Symfony\Component\BrowserKit\Request as BrowserkitRequest;
1818
use Symfony\Component\BrowserKit\Response;
1919
use Yii;
20-
use yii\base\Component;
2120
use yii\base\Event;
2221
use yii\base\ExitException;
2322
use yii\base\Security;
2423
use yii\base\UserException;
2524
use yii\mail\BaseMessage;
2625
use yii\web\Application;
2726
use yii\web\IdentityInterface;
28-
use yii\web\Request;
2927
use yii\web\Request as YiiRequest;
3028
use yii\web\Response as YiiResponse;
3129
use yii\web\User;
3230

3331
/**
3432
* @extends Client<BrowserkitRequest, Response>
33+
* @internal This class is not part of the public API
3534
*/
3635
final class Yii2 extends Client
3736
{

tests/cases/sqlite/fixtures/TestFixture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function unload()
3131
foreach ($this->dbComponents as $name) {
3232
/** @var Connection $connection */
3333
$connection = \Yii::$app->get($name);
34-
if (in_array($this->tableName, $connection->getSchema()->getTableNames('', true))) {
34+
if (in_array($this->tableName, $connection->getSchema()->getTableNames('', true), true)) {
3535
$connection->createCommand()->dropTable($this->tableName)->execute();
3636
}
3737
}

0 commit comments

Comments
 (0)