Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/PHPCSStandards/PHPCSUtils

A suite of utility functions for use with PHP_CodeSniffer
https://github.com/PHPCSStandards/PHPCSUtils

Merge pull request #295 from PHPCSStandards/feature/revert-temporarily-ignore-an-upstream-bug

GetParametersNamedTest: revert skipping of a test case

16281f5099421e56cb0c31649701a99dd0e32f4f authored almost 3 years ago by Juliette <[email protected]>
GetParametersNamedTest: revert skipping of a test case

The bug fix for the upstream bug - squizlabs/PHP_CodeSniffer 3546 - has been merged, so the test...

6c560f6607d195320539c510c3e76cb24ca0bb9d authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #294 from PHPCSStandards/feature/ghactions-update-various-actions

GH Actions: version update for various predefined actions

390432cd3ea05f2eef3dedad0f2e1d3f9d577217 authored almost 3 years ago by Juliette <[email protected]>
GH Actions: version update for various predefined actions

A number of predefined actions have had major release, which warrant an update the workflow(s).
...

5c307e90f5d68d3300857b97f205a3c3f5d36f3a authored almost 3 years ago by jrfnl <[email protected]>
PHP 8.1 | Numbers: add support for explicit octal notation

This add support for the explicit octal notation using a `0o`/`0O` prefix as supported in PHP as...

52c2176818dd579a17bd69178dd27b76a71a131d authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #292 from PHPCSStandards/feature/docs-tweak

Docs: add command

c9d4794118405a9ac7c67b49139294641de7a6a0 authored almost 3 years ago by Juliette <[email protected]>
Docs: add command

Follow up on #291

cd6f520dcff5d67e8455e27ce500e6cfb6ffe7b5 authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #291 from PHPCSStandards/feature/readme-update-for-composer-2.2

Update for Composer 2.2

6e5b2337ecfe6de235e649411682bf743a6e08a1 authored almost 3 years ago by Juliette <[email protected]>
Update for Composer 2.2

The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is a non-dev requirement fo...

e8255b7dbf172ab955e0e80ad1f7dd75911cc206 authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #289 from PHPCSStandards/feature/ghactions-split-tests-vs-linting

GH Actions: split off the linting to separate job

2a445aaecc73a1a04a7e387a0b82dca0e6c5891c authored almost 3 years ago by Juliette <[email protected]>
GH Actions: split off the linting to separate job

... and run against a smaller selection of PHP versions.

375dfc839c68f487ffa64c5344020b491694e599 authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #288 from PHPCSStandards/feature/temporarily-ignore-an-upstream-bug

GetParametersNamedTest: temporarily skip one test case

ba316b0dee385a8bfb3ac5a5361cfba66c4ab363 authored almost 3 years ago by Juliette <[email protected]>
GetParametersNamedTest: temporarily skip one test case

... which is failing due to an upstream bug.

Once the bug fix pulled upstream has been merged, ...

64b609823901c5381af7bbf51d64fc2d8161ddde authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #287 from PHPCSStandards/feature/usestatements-make-test-for-splitting-more-consistent

UseStatements::splitImportUseStatement: improve test consistency

0c3da06830122b94f84717743a9abab6291191fa authored almost 3 years ago by Juliette <[email protected]>
UseStatements::splitImportUseStatement: improve test consistency

The "parse error due to reserved keyword as alias" tests for `use .... as function` and `use ......

7c53236f3489d484795b6d5385695e4e849fce47 authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #286 from PHPCSStandards/feature/getversiontest-update-version-nr

GetVersionTest: update version number of last release

237fa37f0c38fa57541b969c1d84045d55176c1a authored almost 3 years ago by Juliette <[email protected]>
GetVersionTest: update version number of last release

207bada9d5a569360f2d18e5a804ba176640f632 authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #285 from PHPCSStandards/feature/BCTokens-sync-with-phpcs-enum

BCTokens: update `scopeOpeners()` and `ooScopeTokens()`

0656888c9e48c50f028220a18688c1bead2766eb authored almost 3 years ago by Juliette <[email protected]>
BCTokens: update `scopeOpeners()` and `ooScopeTokens()`

.. to account for the PHP 8.1 `enum` keyword token `T_ENUM`.

These were added to PHPCS as part ...

447a397be7daed9b4afbd2002697d8e39b718c7a authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #284 from PHPCSStandards/feature/ghactions-quicktest-latest-is-php-8.1

GH Actions/Quicktest: use PHPUnit 9 for PHP 8+

dbc6c5d0991c23ea1e3b1c22d9f25e81677e867b authored almost 3 years ago by Juliette <[email protected]>
GH Actions/Quicktest: use PHPUnit 9 for PHP 8+

2e669a114b6d3a5732a26f46de1fe9c842c7e692 authored almost 3 years ago by jrfnl <[email protected]>
Merge pull request #283 from PHPCSStandards/feature/ghactions-update-composer-action

GH Actions: version update for `ramsey/composer-install`

5908002baaf857f23c2afcc35c4408d4ad4965da authored about 3 years ago by Juliette <[email protected]>
GH Actions: version update for `ramsey/composer-install`

The action used to install Composer packages and handle the caching has released a new major (an...

0bd7f57bdbfaf4d603c2cfa00c79a76c24c5a2f5 authored about 3 years ago by jrfnl <[email protected]>
Merge pull request #282 from PHPCSStandards/feature/ghactions-various-updates

GH Actions: various updates

7a0401d40639c7955e8fd7cd808c17cb620455c8 authored about 3 years ago by Juliette <[email protected]>
GH Actions: auto-cancel previous builds for same branch

Previously, in Travis, when the same branch was pushed again and the "Auto cancellation" option ...

ebc2fb4c0d9e32ecb030456b636c25248bc46fea authored about 3 years ago by jrfnl <[email protected]>
GH Actions: update for the release of PHP 8.1

8dd5b88fba670ab3bd1f3e6b935b214b9ef94b28 authored about 3 years ago by jrfnl <[email protected]>
GH Actions: use error_reporting=-1

045965d3e91f1404afb84238cd89ead43180e738 authored about 3 years ago by jrfnl <[email protected]>
Merge pull request #280 from PHPCSStandards/feature/composer-allow-phpcs-plugin

Composer: allow the PHPCS plugin

35a06f86f320b51ab4e6afcf1e0f5d532dbfc200 authored about 3 years ago by Juliette <[email protected]>
Composer: allow the PHPCS plugin

The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register externa...

96a5de2e6647d3633e61e9a05317ed4537594f71 authored about 3 years ago by jrfnl <[email protected]>
Merge pull request #281 from PHPCSStandards/feature/cs-update

Composer: use PHPCSDevCS v 1.1.3

f9f15b770eac828f950a5ce8f5ad944c8728b2ad authored about 3 years ago by Juliette <[email protected]>
Composer: use PHPCSDevCS v 1.1.3

Ref: https://github.com/PHPCSStandards/PHPCSDevCS/releases/tag/1.1.3

af49d3d5978f553ef287ce60ecbc508798426c19 authored about 3 years ago by jrfnl <[email protected]>
Merge pull request #279 from PHPCSStandards/feature/phpunit-update-config

PHPUnit: update configuration

593249e791047c5156cd13de69ea49e102b8509f authored over 3 years ago by Juliette <[email protected]>
PHPUnit: update configuration

PHPUnit just released version 9.5.10 and 8.5.21.

This contains a particular (IMO breaking) chan...

9519552b0cd8379faa4fece6bfee9e29d80c7ee6 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #278 from PHPCSStandards/feature/composer-update-dev-dependencies

Composer: update dev dependencies

d3e198329944cabb6d1ad19584e285c0ef905641 authored over 3 years ago by Juliette <[email protected]>
Composer: update dev dependencies

Most notably, PHP Parallel Lint 1.3.1 has improved compatibility with PHP 8.1.

Refs:
* https://...

20b3d8a1b7714f1b760e126245caf11110fa1e3f authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #277 from PHPCSStandards/feature/implement-phpunit-polyfills

Tests: use PHPUnit Polyfills

64da18cf34eab19c6673a2aa0afbdd8d38aaf18c authored over 3 years ago by Juliette <[email protected]>
Tests: remove PHPUnit cross-version work-arounds

... in favour of using the PHPUnit Polyfills.

e21c525cf22e804ed7cc4c7b17faefe17248cde8 authored over 3 years ago by jrfnl <[email protected]>
Tests: update the bootstrap file

... to always check that a `composer install` has been run and to load the PHPUnit Polyfill auto...

a80afa9b7d52b855cae2c50b5fc5ae594f337a4d authored over 3 years ago by jrfnl <[email protected]>
Composer: require-dev the PHPUnit Polyfills

While generally speaking, the `require-dev` for PHPUnit should now be removed, I'm leaving it in...

43bda04dedada2ad346c480d67f997ccdbec4eb6 authored over 3 years ago by jrfnl <[email protected]>
Tests: add abstract `PolyfilledTestCase`

This test case extends the `UtilityMethodTestCase` from which most test classes extend and makes...

dc1b61ab6e81a02e066aa527acbab143dbc61864 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #276 from PHPCSStandards/feature/ghactions-turn-on-error-reporting

GH Actions: turn display_errors on

403ad2cabaef06b7edc14d04e1853ff50a3eae83 authored over 3 years ago by Juliette <[email protected]>
GH Actions: turn display_errors on

Turns out the default setting for `error_reporting` used by the SetupPHP action is `error_report...

609a1953f64d466715191b998962ec67be60d2af authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #275 from PHPCSStandards/tests/use-most-appropriate-assertion

Tests: use most appropriate assertion

8e9e117e49e6a672868cfa174b088c2cf27fdfab authored over 3 years ago by Juliette <[email protected]>
Tests: use most appropriate assertion

34ec2c8d43686b43dc139b3f5508cba2fec6ce75 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #274 from PHPCSStandards/feature/composer-higher-phpunit4-version

Composer: tweak the PHPUnit 4.x version used

18067c8df78bb74ef7d65e9035a88196da790849 authored over 3 years ago by Juliette <[email protected]>
Composer: tweak the PHPUnit 4.x version used

The PHPUnit 4.x version used was based on a bug previously encountered via the PHPCompatibility ...

dd8aa06b65452765740d9bf84eb9dd93def44f78 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #273 from PHPCSStandards/utilitymethodtestcase/gettargetmethod-fail-on-missing-test-comment

UtilityMethodTestCase: fail test on missing test marker comment

59657358458cf18d24bcaf5176e292842bf62cab authored over 3 years ago by Juliette <[email protected]>
UtilityMethodTestCase: fail test on missing test marker comment

When a test marker comment was not found, the `UtilityMethodTestCase::getTargetToken()` would se...

9b8cf600bab42821d46de3e2df1e9868e2209735 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #271 from PHPCSStandards/arrays-lists/extra-fix-for-tokenizer-bug

Arrays::isShortArray()/Lists::isShortList(): bugfix for tokenizer issue icw short open tag

995ce0780fb9051b295f65fc00fc46d9cf217a75 authored over 3 years ago by Juliette <[email protected]>
Arrays::isShortArray()/Lists::isShortList(): bugfix for tokenizer issue icw short open tag

The tokenizer issue as tested for in the BC1 and BC2 test case files and described in squizlabs/...

b15bae447921a7b8f6191d0098c318ae9799a487 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #270 from PHPCSStandards/passedparameters/test-document-behaviour-empty-list-items

Tests/PassedParameters::getParameters(): document behaviour with empty list items

0cf9a857d86f4a07331e2537474fa64d309dc1b7 authored over 3 years ago by Juliette <[email protected]>
Tests/PassedParameters::getParameters(): document behaviour with empty list items

... when using the `$isShortArray = true` parameter.

Includes fixing a small error in one of th...

6d1ef62c7947012cd23b34df679023c160d8f243 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #269 from PHPCSStandards/passedparameters/add-new-isshortarray-param

PassedParameters::[has|get]Parameters(): add new, optional `$isShortArray` parameter

4968182496655f3ab1b7016b23aed7778180fce1 authored over 3 years ago by Juliette <[email protected]>
PassedParameters::[has|get]Parameters(): add new, optional `$isShortArray` parameter

This adds a new, optional `$isShortArray` parameter to the `PassedParameters::hasParameters()` a...

0afbbf018ce23c0e114067ccb4d8ad5fbbcc57f9 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #268 from PHPCSStandards/feature/ghactions-finish-tweaks

GH Actions: minor clean up

935c27f3a4ad23219e6edac2cbcc9ae2f26c2104 authored over 3 years ago by Juliette <[email protected]>
GH Actions: minor clean up

* Skip the `quicktest` on `develop` as those are the same builds as for `coverage`, so no need t...

d8bbb68047456c6e741124286b31d7fc91c5e72c authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #267 from PHPCSStandards/feature/ghactions-attempt-4

GH Actions: yet another attempt

e7eb0b9eb480d6242fa46be53fe7f3b9ad5162d7 authored over 3 years ago by Juliette <[email protected]>
GH Actions: yet another attempt

... inspired by example found here: https://github.com/babel/babel/blob/672a58660f0b15691c44582f...

be40a659d95496e32382d40d293714b25899e782 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #266 from PHPCSStandards/feature/ghactions-try-again-again

GH Actions: tweak condition further

3022c519535a8c353c765e0e6e23653c364823fb authored over 3 years ago by Juliette <[email protected]>
GH Actions: tweak condition further

... let's hope this will work.

445edb088249a50b879716337b6dcdccd7f4a520 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #265 from PHPCSStandards/feature/ghactions-try-again

GH Actions: tweak order

ef6e2a90185a78c4ccc9135f89a2ed4b866221c2 authored over 3 years ago by Juliette <[email protected]>
GH Actions: tweak order

... hoping that will make a difference...

f5f29043a8c23eba3910cba4a8213a9b43974b83 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #264 from PHPCSStandards/feature/add-release-checklist

Add a release checklist

0dcb702fd00d8f84af7c1bc5b2f4a9ca179c5b75 authored over 3 years ago by Juliette <[email protected]>
Merge pull request #263 from PHPCSStandards/feature/ghactions-tweak-coverage-runs

GH Actions: tweak coverage run

bc1838d6b4900fee7e70bf774ead79e92bf78f45 authored over 3 years ago by Juliette <[email protected]>
GH Actions: tweak coverage run

As things were, coverage would only be run on pull requests and on `master`.
Generally speaking,...

32e59981c33b3f73d3bc987e5a2f1d1b8caf572e authored over 3 years ago by jrfnl <[email protected]>
Add a release checklist

... to document the release process and as a reminder for the future.

198c2ffc506f1111dc6902cf175b194c3aa60036 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #262 from PHPCSStandards/passedparameters/add-one-extra-test

PassedParameters::getParameter(): add one extra test

f2fc2369c53a7da1b00aeb080d28c1cb8bf1a6ae authored over 3 years ago by Juliette <[email protected]>
PassedParameters::getParameter(): add one extra test

... for a non-function call with no parameters (and naturally, no param names) where the limit g...

abb41dd426840a4eec5189bb86e73c4a130d9d19 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #261 from PHPCSStandards/passedparameters/allow-setting-limit

PassedParameters::getParameters(): add new, optional $limit parameter

000626c4dde3c43d4d045211590eca6142bb6fd7 authored over 3 years ago by Juliette <[email protected]>
PassedParameters::getParameters(): add new, optional $limit parameter

This adds a new, optional `$limit` parameter to the `PassedParameters::getParameters()` method t...

205e9de92131768a7f0cbe66392ca9095f20848e authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #260 from PHPCSStandards/feature/passedparameters-minor-efficiency-tweak

PassedParameters: minor efficiency tweak

e6f27a9763396d09210bf30f1b11a03a69033d65 authored over 3 years ago by Juliette <[email protected]>
PassedParameters: minor efficiency tweak

Only `array_flip()` when there are parameter names.

0f5cf09e9039330172c0c38a28e2d19ae8ba7a9c authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #259 from PHPCSStandards/feature/update-phpcs-version

GetVersionTest: update PHPCS version number

79a8501e8608bde5c8ff8c3756efd0aa8c01cb58 authored over 3 years ago by Juliette <[email protected]>
Merge pull request #258 from PHPCSStandards/feature/update-dependency-constraints

Composer: update PHP Parallel Lint

74db37667aa0f48192ad91d2cab41ef552ae1492 authored over 3 years ago by Juliette <[email protected]>
GetVersionTest: update PHPCS version number

... to match the last released version.

022cce1f24ab65bdd34c9f8abc5fab99004db5d0 authored over 3 years ago by jrfnl <[email protected]>
Composer: update PHP Parallel Lint

Update version constraint for PHP Parallel Lint after new release.

Refs:
* https://github.com/p...

59398bee3e0e4f75bfe865bba88e5292d465d576 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #257 from PHPCSStandards/feature/minor-code-cleanup

CS: minor cleanup

6cf56c37c75603543ba4c8f668ff3a0625660239 authored over 3 years ago by Juliette <[email protected]>
Merge pull request #256 from PHPCSStandards/feature/no-reserved-keyword-params

PHP 8.0 | QA/CS: don't use reserved keywords as parameter names

653720c537523fa66a9490d5a4a06ce451d29ca8 authored over 3 years ago by Juliette <[email protected]>
CS: minor cleanup

fb9da6a11f1cfc3cb156cfb7882b5d6389de294f authored over 3 years ago by jrfnl <[email protected]>
PHP 8.0 | QA/CS: don't use reserved keywords as parameter names

... to prevent confusion when PHP 8.0 named parameters in function calls would be used.

11c87313bffb79305d414d8232e68a7d3d55796a authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #254 from PHPCSStandards/collections/new-phpopentags-method

Collections: add new `phpOpenTags()` method

97d81019b7139fe9106db0f03865e9ab6d264c07 authored over 3 years ago by Juliette <[email protected]>
Collections: add new `phpOpenTags()` method

... to retrieve the tokens available for opening PHP.

bf1334619442406f1e79a8ac97bdefdc8cb9850c authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #253 from PHPCSStandards/feature/tests-rename-variable

QA: rename a variable to be more descriptive

8c392d4c438b0c0dcb7f118a8300b1d6c48a5520 authored over 3 years ago by Juliette <[email protected]>
Merge pull request #252 from PHPCSStandards/feature/objectdeclarations-getclassproperties-allow-for-final

ObjectDeclarations::getClassProperties(): allow for `abstract final`

7a4fab4f9332bec8844dc180465e5fcff7f6f45d authored over 3 years ago by Juliette <[email protected]>
Merge pull request #255 from PHPCSStandards/feature/minor-cs-tweaks

CS/QA: minor tweaks

af111854475aa89e557b26754cdba36238568dc0 authored over 3 years ago by Juliette <[email protected]>
Collections: Minor tweak

Methods in this class are listed in alphabetic order and this one was breaking the ordering.

dfe8793078b0f1daf4f13b25ff3acf70cce7eb42 authored over 3 years ago by jrfnl <[email protected]>
QA: rename a variable to be more descriptive

Copy/pasta snafu.

d42e75976bf91e2fea132c5ac9be904dcdb166ea authored over 3 years ago by jrfnl <[email protected]>
ObjectDeclarations::getClassProperties(): allow for `abstract final`

Having both `abstract` as well as `final` as a modifier for a class is an oxymoron (and a parse ...

513a078e981ee0674fe0b6a070ae8a9f5d254d2f authored over 3 years ago by jrfnl <[email protected]>
CS: minor tweaks

f7dd674cd5383eee3339842e52fd8384116d68e8 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #251 from PHPCSStandards/phpcs-4.x/handle-closure-use-parenthesis-owner

PHPCS 4.x | Handle closure use being a parenthesis owner

089c165bb71ac075839d5ffbcc08abc775350894 authored over 3 years ago by Juliette <[email protected]>
PHPCS 4.x | FunctionDeclarations::getParameters(): document T_USE handling

`T_USE` tokens used for closure use statements are parentheses owners as of PHPCS 4.x.

The `Fun...

56388c57ecf097e23494442776b88277d5fa7718 authored over 3 years ago by jrfnl <[email protected]>
PHPCS 4.x | BCFile::getMethodParameters(): T_USE is now a parenthesis owner

`T_USE` tokens used for closure use statements are parentheses owners as of PHPCS 4.x.

This fix...

ff705f0ef9f6d2e767dcb5e1ff76e388990ba65b authored over 3 years ago by jrfnl <[email protected]>
PHPCS 4.x | UseStatements::getType(): efficiency tweak for closure use

`T_USE` tokens used for closure use statements are parentheses owners as of PHPCS 4.x.

So, as o...

6e377c078fe3dd2981048d8732d17f6736b27eab authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #249 from PHPCSStandards/feature/new-message-helper-class

New `Utils\MessageHelper` class

cb5f20cd458e5505115dc59712f90e7e476b312a authored over 3 years ago by Juliette <[email protected]>
:sparkles: New `Utils\MessageHelper` class

This class initially introduces five new utility methods for working with error/warning messages...

581c21af9551348e42213648959b74fc0a9abb02 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #250 from PHPCSStandards/bctokens/new-tokenname-method-polyfill

BCTokens: polyfill the tokenName() method

1fb03d58f5e87464be9c50915cd0688582c5388a authored over 3 years ago by Juliette <[email protected]>
Merge pull request #248 from PHPCSStandards/feature/utilitymethodtestcase-gettergettoken-extra-param

UtilityMethodTestCase::getTargetToken(): add option to throw an exception...

d2e0918b00439c20c4fa263a153d8d7e0e231328 authored over 3 years ago by Juliette <[email protected]>
BCTokens: polyfill the tokenName() method

This PHPCS method was introduced in PHPCS 3.0.0.

Includes unit tests.

Co-authored-by: Greg She...

183274ce4ffdd62fa912af6646ee66fbf402fcf7 authored over 3 years ago by jrfnl <[email protected]>
UtilityMethodTestCase::getTargetToken(): add option to throw an exception instead of failing the test

By default, if the target token cannot be found, the `UtilityMethodTestCase::getTargetToken()` m...

ffaa3777597625bf73697aa2daf2e159fbce8515 authored over 3 years ago by jrfnl <[email protected]>
Merge pull request #246 from PHPCSStandards/operators/istypeunion-additional-tests

Operators::isTypeUnion() + BCFile/FunctionDeclarations::get[Method]Parameters(): add some additi...

bf8c4d2f854422895c7b925a31e6ad5646e8bd4a authored over 3 years ago by Juliette <[email protected]>