Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
]);

$overrides = [
'declare_strict_types' => true,
'phpdoc_to_return_type' => true,
'void_return' => true,
];
Expand Down
2 changes: 2 additions & 0 deletions tests/_support/Commands/Foobar.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
Expand Down
4 changes: 4 additions & 0 deletions utils/src/PhpCsFixer/CodeIgniterRuleCustomisationPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function getRuleCustomisers(): array
$normalisedStrEndsWith = static fn (string $haystack, string $needle): bool => str_ends_with(str_replace('\\', '/', $haystack), $needle);

return [
'declare_strict_types' => static fn (SplFileInfo $file): bool => ! $normalisedStrEndsWith(
$file->getPathname(),
'/tests/system/Debug/ExceptionsTest.php',
),
'native_function_casing' => static fn (SplFileInfo $file): bool => ! $normalisedStrEndsWith(
$file->getPathname(),
'/tests/system/Database/Live/PreparedQueryTest.php',
Expand Down
Loading