Skip to content

Commit

Permalink
Merge pull request #1202 from datamweb/add-psalm-file-for-cs
Browse files Browse the repository at this point in the history
chore: add `psalm_autoload.php` for linter
  • Loading branch information
datamweb authored Oct 3, 2024
2 parents ee779a0 + 7f17d8d commit f5bb892
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
->append([
__FILE__,
__DIR__ . '/rector.php',
__DIR__ . '/psalm_autoload.php',
]);

$overrides = [
Expand Down
9 changes: 9 additions & 0 deletions psalm_autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* This file is part of CodeIgniter Shield.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

require __DIR__ . '/vendor/codeigniter4/framework/system/Test/bootstrap.php';

$helperDirs = [
Expand Down
2 changes: 1 addition & 1 deletion tests/Language/AbstractTranslationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ final public function testAllLocalizationParametersAreNotTranslated(string $loca

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

$diffs[$id] ??= [];
Expand Down

0 comments on commit f5bb892

Please sign in to comment.