Skip to content

Commit 77f5d23

Browse files
authored
Merge pull request #1599 from garak/remove-strict
🎨 remove strict type declarations
2 parents f97b222 + d8ee173 commit 77f5d23

5 files changed

Lines changed: 2 additions & 7 deletions

File tree

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'@Symfony:risky' => true,
1313
'@PHP8x1Migration' => true,
1414
'@PHPUnit10x0Migration:risky' => true,
15-
'declare_strict_types' => false,
15+
'declare_strict_types' => ['strategy' => 'remove'],
1616
'native_function_invocation' => [
1717
'include' => ['@internal'],
1818
],

src/FileAbstraction/ReplacingFile.php

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

3-
declare(strict_types=1);
4-
53
namespace Vich\UploaderBundle\FileAbstraction;
64

75
use Symfony\Component\HttpFoundation\File\File;

src/Mapping/PropertyMappingResolver.php

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

3-
declare(strict_types=1);
4-
53
namespace Vich\UploaderBundle\Mapping;
64

75
use Vich\UploaderBundle\Exception\MappingNotFoundException;

src/Mapping/PropertyMappingResolverInterface.php

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

3-
declare(strict_types=1);
4-
53
namespace Vich\UploaderBundle\Mapping;
64

75
use Vich\UploaderBundle\Exception\MappingNotFoundException;

tests/Metadata/Driver/AnnotationDriverTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ final class AnnotationDriverTest extends TestCase
3030

3131
protected function setUp(): void
3232
{
33+
// @phpstan-ignore-next-line function.impossibleType
3334
if (!\class_exists(Reader::class)) {
3435
$this->markTestSkipped('The doctrine/annotations package is not installed');
3536
}

0 commit comments

Comments
 (0)