Skip to content

Commit 4e18a0d

Browse files
committed
Declare strict types
1 parent a98afa2 commit 4e18a0d

16 files changed

+34
-12
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,12 @@
5555
'return_assignment' => false,
5656
'comment_to_phpdoc' => false,
5757
'general_phpdoc_annotation_remove' => [
58-
'annotations' => ['author', 'copyright', 'throws'],
58+
'annotations' => ['author', 'copyright'],
5959
],
6060

6161
// fn => without curly brackets is less readable,
6262
// also prevent bounding of unwanted variables for GC
6363
'use_arrow_functions' => false,
64-
65-
// TODO disable too strict rules for now
66-
'declare_strict_types' => false,
67-
'general_phpdoc_annotation_remove' => false,
68-
'php_unit_data_provider_static' => false,
69-
'php_unit_strict' => false,
70-
'phpdoc_to_comment' => false,
71-
'strict_comparison' => false,
7264
])
7365
->setFinder($finder)
7466
->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer.' . md5(__DIR__) . '.cache');

tests/mutex/CASMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use malkusch\lock\exception\LockAcquireException;

tests/mutex/FlockMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use Eloquent\Liberator\Liberator;

tests/mutex/LockMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use malkusch\lock\exception\LockAcquireException;

tests/mutex/MemcachedMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use malkusch\lock\exception\LockReleaseException;

tests/mutex/MutexConcurrencyTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use Eloquent\Liberator\Liberator;

tests/mutex/MutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use Eloquent\Liberator\Liberator;

tests/mutex/PHPRedisMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use malkusch\lock\exception\LockAcquireException;

tests/mutex/PgAdvisoryLockMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use malkusch\lock\mutex\PgAdvisoryLockMutex;

tests/mutex/PredisMutexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace malkusch\lock\Tests\mutex;
46

57
use malkusch\lock\exception\LockAcquireException;

0 commit comments

Comments
 (0)