Skip to content

Commit f5bb892

Browse files
authored
Merge pull request #1202 from datamweb/add-psalm-file-for-cs
chore: add `psalm_autoload.php` for linter
2 parents ee779a0 + 7f17d8d commit f5bb892

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
->append([
2626
__FILE__,
2727
__DIR__ . '/rector.php',
28+
__DIR__ . '/psalm_autoload.php',
2829
]);
2930

3031
$overrides = [

psalm_autoload.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of CodeIgniter Shield.
7+
*
8+
* (c) CodeIgniter Foundation <admin@codeigniter.com>
9+
*
10+
* For the full copyright and license information, please view
11+
* the LICENSE file that was distributed with this source code.
12+
*/
13+
514
require __DIR__ . '/vendor/codeigniter4/framework/system/Test/bootstrap.php';
615

716
$helperDirs = [

tests/Language/AbstractTranslationTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ final public function testAllLocalizationParametersAreNotTranslated(string $loca
332332

333333
foreach ($matches as $match) {
334334
foreach ($match as $parameter) {
335-
if (strpos($translated[$key], (string) $parameter) === false) {
335+
if (strpos($translated[$key], $parameter) === false) {
336336
$id = sprintf('%s.%s', substr($file, 0, -4), $key);
337337

338338
$diffs[$id] ??= [];

0 commit comments

Comments
 (0)