22 Commits

Author SHA1 Message Date
Amir E. Aharoni
a10c3399da Add my email to composer.json (#379) 2024-08-28 12:30:45 +05:30
Abijeet
d8da35a6c0 Update PHP dependencies
```
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 7 updates, 0 removals
  - Downloading nikic/php-parser (v5.1.0)
  - Downloading phpunit/phpunit (9.6.20)
  - Upgrading squizlabs/php_codesniffer (3.7.2 => 3.8.1): Extracting archive
dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "dealerdirect/phpcodesniffer-composer-installer" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
  - Installing dealerdirect/phpcodesniffer-composer-installer (v1.0.0): Extracting archive
  - Upgrading symfony/polyfill-php80 (v1.29.0 => v1.30.0): Extracting archive
  - Installing phpcsstandards/phpcsutils (1.0.9): Extracting archive
  - Installing phpcsstandards/phpcsextra (1.1.2): Extracting archive
  - Upgrading composer/semver (3.3.2 => 3.4.0): Extracting archive
  - Upgrading mediawiki/mediawiki-codesniffer (v42.0.0 => v43.0.0): Extracting archive
  - Upgrading nikic/php-parser (v5.0.2 => v5.1.0): Extracting archive
  - Upgrading myclabs/deep-copy (1.11.1 => 1.12.0): Extracting archive
  - Upgrading phpunit/phpunit (9.6.16 => 9.6.20): Extracting archive
Generating autoload files
```
Bug: https://phabricator.wikimedia.org/T369065
2024-07-11 10:19:21 -04:00
Abijeet Patro
f68f527f96 composer.json: Add ext-curl to dev dependencies (#331)
Fixes #323
2024-01-24 21:32:47 +05:30
Abijeet Patro
c93a25d15e PHP: Update dependencies (#328)
Outdated packages:

phpunit/phpunit           9.6.13  9.6.16

Transitive dependencies not required in
composer/semver           3.3.2   3.4.0
composer/spdx-licenses    1.5.7   1.5.8
nikic/php-parser          v4.17.1 v5.0.0
phpunit/php-code-coverage 9.2.29  9.2.30
sebastian/complexity      2.0.2   2.0.3
sebastian/lines-of-code   1.0.3   1.0.4
squizlabs/php_codesniffer 3.7.2   3.8.1
theseer/tokenizer         1.2.1   1.2.2

Bug: https://phabricator.wikimedia.org/T355106
2024-01-24 21:18:01 +05:30
Abijeet Patro
12b073a5ef PHP: Update dependencies (#319)
mediawiki/mediawiki-codesniffer v41.0.0 v42.0.0 MediaWiki CodeSniffer Standards
phpunit/phpunit                 9.6.10  9.6.13  The PHP Unit Testing framework.

Bug: https://phabricator.wikimedia.org/T347849

Co-authored-by: Niklas Laxström <niklas.laxstrom@gmail.com>
2023-10-25 15:03:17 +05:30
Abijeet
704fdab645 PHP: Update dependencies
Package operations: 0 installs, 3 updates, 0 removals
  - Downloading phpunit/phpunit (9.6.10)
  - Upgrading sebastian/diff (4.0.4 => 4.0.5): Extracting archive
  - Upgrading nikic/php-parser (v4.15.4 => v4.16.0): Extracting archive
  - Upgrading phpunit/phpunit (9.6.7 => 9.6.10): Extracting archive

Bug: https://phabricator.wikimedia.org/T340730
2023-07-17 13:04:52 +03:00
Amir E. Aharoni
c54454f4a2 Sort language YAML file alphabetically (#303) 2023-07-17 14:22:35 +05:30
Abijeet
6fd751bac1 PHP: Update dependencies
Output of composer outdated:

Direct dependencies required in composer.json:
mediawiki/mediawiki-codesniffer v39.0.0 v41.0.0
phpunit/phpunit                 9.5.25  9.6.7

Transitive dependencies not required in compose
myclabs/deep-copy               1.11.0  1.11.1
nikic/php-parser                v4.15.3 v4.15.4
phpunit/php-code-coverage       9.2.23  9.2.26
sebastian/environment           5.1.4   5.1.5
sebastian/recursion-context     4.0.4   4.0.5
sebastian/type                  3.2.0   3.2.1
squizlabs/php_codesniffer       3.6.2   3.7.2

Manually updated phpunit and mediawiki-codesniffer.
Update phpunit.xml file as per latest format.

Bug: https://phabricator.wikimedia.org/T333823
2023-04-18 14:33:46 +03:00
Abijeet
aa4cef355c Drop support for PHP 7.2, and update dependencies
In CI add tests for PHP 8.2
2023-01-21 11:15:53 +02:00
Abijeet Patro
83516007c7 Update PHP dependencies (#256)
Ran composer show --outdated and then composer update after updating
composer.json
2022-10-27 21:28:06 +05:30
Abijeet
17cb847b93 Update PHP dependencies
Ran composer show --outdated and then composer update after updating
package.json

Fix CI failures:

* assertEmpty performs loose comparisons and should not be used.
2022-07-08 16:54:40 +05:30
Abijeet Patro
348a1534bd Update PHP dependencies (#219)
Ran composer show --outdated and then composer update

composer/semver             3.2.7   3.3.2
doctrine/instantiator       1.4.0   1.4.1
myclabs/deep-copy           1.10.2  1.11.0
phar-io/version             3.1.0   3.2.1
phpdocumentor/type-resolver 1.6.0   1.6.1
phpunit/php-code-coverage   9.2.10  9.2.15
phpunit/phpunit             9.5.11  9.5.20
sebastian/environment       5.1.3   5.1.4
sebastian/global-state      5.0.3   5.0.5
sebastian/type              2.3.4   3.0.0
squizlabs/php_codesniffer   3.6.1   3.6.2
symfony/polyfill-ctype      v1.24.0 v1.25.0

Co-authored-by: Niklas Laxström <niklas.laxstrom@gmail.com>
2022-04-21 11:16:23 +05:30
Abijeet
daa44ed137 Update composer dependencies
Update the following dependencies:

* php-unit
* mediawiki-codesniffer

Use specific dependencies.

Fix issues highlighted by new rules in mediawiki-codesniffer
2022-01-18 13:12:47 +02:00
Niklas Laxström
07efae50c5 Update PHP development dependencies (#139) 2021-01-28 14:35:10 +05:30
Abijeet
90acf1ca7e Update mediawiki-codesniffer to 31.0.0
Bug: T266462
2020-10-26 17:15:38 +02:00
Abijeet
a19900efef Unify package.json and composer.json, update version before release 2020-05-20 16:54:32 +03:00
Abijeet
936c0e8ee2 Add Abijeet as a contributor in package.json and composer.json 2020-05-19 11:08:50 +03:00
Abijeet Patro
6348e1589b Add phpunit configuration file
Use the configuration file to pass the location of the tests and
autoload class files.

Pass -sp to phpcs command
2020-05-18 15:45:15 +03:00
Abijeet
e9a6c467f3 Move spyc to composer.json 2020-05-12 16:03:31 +03:00
Abijeet
a182ddb215 Add users with more than 5 commits to credits / authors
Also update authors to be alphabetically ordered.
2020-02-24 16:35:43 +02:00
Abijeet
7c970cb247 Replace Travis with Github actions
Two workflows have been added,

  * PHP build - Runs tests on version 7.2, 7.3, also runs phpcs
  * Node.js build - Runs tests on version 8.x, 10.x, 12.x, also
    runs ESLint

Bug: T218639
2020-01-31 23:06:26 +05:30
Abijeet
09ab6024fe Add a PHP interface to work with the language data
Additional changes in this PR include,

  * Added composer.json
  * Refactored the folder structure.
  * Added editorconfig.
  * Added PHPCS and formatted existing code.
  * Changes to use a single license - GPL-2.0-or-later
  * ESLint related fixes

Bug: T218639
2020-01-31 23:00:46 +05:30