Remove redefintion of t() from update-countries.sh

Created on 31 August 2023, over 1 year ago
Updated 8 September 2023, over 1 year ago

Problem/Motivation

PHPStan is reporting Function t invoked with 2 parameters, 1 required errors when I run it locally on HEAD. I first noticed this when working on a change and used commit-code-check.sh. Also reported in the last full run is Ignored error pattern #^Variable \$error in empty\(\) always exists and is not falsy\.$# in path /var/www/html/core/modules/media/media.install was not matched in reported errors.

I deleted the site and started fresh. There was no change. Clearing the phpstan cache also has no effect.

I tracked it to 📌 Fix PHPStan error in run-tests.sh Fixed . When I revert that commit I don't get the errors. However, if I keep that commit but change the fileExtensions from - sh to - .sh PHPStan doesn't report these errors. I only tried adding the "." out of desperation and it isn't a fix, just information.

I've attached a file with the output of running
php -d apc.enabled=0 -d apc.enable_cli=0 vendor/bin/phpstan analyze --no-progress --configuration=core/phpstan.neon.dist > phpstan-errors.txt
That reports errors in 203 files.

My dev environment is ddev, version v1.22.1.

Steps to reproduce

Proposed resolution

Remove redefintion of t() from update-countries.sh

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 1 hour ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024