Skip to content

Commit

Permalink
styles: Enable back the fully_qualified_strict_types PHP-CS-Fixer rule (
Browse files Browse the repository at this point in the history
#1934)

Related to #1929.

Co-authored-by: Alexey Kopytko <alexey@kopytko.com>
  • Loading branch information
theofidry and sanmai committed Mar 20, 2024
1 parent 656f574 commit efcb756
Show file tree
Hide file tree
Showing 6 changed files with 332 additions and 328 deletions.
8 changes: 5 additions & 3 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@
'blank_line_between_import_groups' => false,
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
// TODO: enable back
'fully_qualified_strict_types' => false,
'get_class_to_class_keyword' => true,
'fully_qualified_strict_types' => [
'import_symbols' => true,
],
// TODO: enable
'get_class_to_class_keyword' => false,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
Expand Down
4 changes: 2 additions & 2 deletions src/FileSystem/DummyFileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
use function version_compare;

if (version_compare((string) InstalledVersions::getPrettyVersion('symfony/filesystem'), 'v6.0', '<')) {
class_alias(DummySymfony5FileSystem::class, \Infection\FileSystem\DummyFileSystem::class);
class_alias(DummySymfony5FileSystem::class, DummyFileSystem::class);
} else {
class_alias(DummySymfony6FileSystem::class, \Infection\FileSystem\DummyFileSystem::class);
class_alias(DummySymfony6FileSystem::class, DummyFileSystem::class);
}
Loading

0 comments on commit efcb756

Please sign in to comment.