Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
PHP CodeSniffer
Maintains PHP_CodeSniffer, a number of external standards for PHP_CodeSniffer and tooling to make it easier to use and develop for PHP_CodeSniffer.
Collective -
Host: opensource -
https://opencollective.com/php_codesniffer
- Code: https://github.com/PHPCSStandards
... as there can never be a (grand-)child class.
github.com/PHPCSStandards/PHPCSUtils - 34fdeb5352f00ba008139eb400e80d6744e827d8 authored about 2 years ago by jrfnl <[email protected]>The "class vs sniff name" matcher in the PHPCS autoloader does not handle sniffs classes extendi...
github.com/PHPCSStandards/PHPCSUtils - fcc9cc97e7004a389b943600be0bcc5e6f9f9ee1 authored about 2 years ago by jrfnl <[email protected]>Tests: use abstract base class for the `Operators::isUnaryPlusMinus()` tests
github.com/PHPCSStandards/PHPCSUtils - be649f0dbe82b7baadd3779ce343df17fdc3092d authored about 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - fc5129fad9dd2006d464c5716cdc32a1db484283 authored about 2 years ago by jrfnl <[email protected]>
Tests: use abstract base class for the `SpacesFixer` tests
github.com/PHPCSStandards/PHPCSUtils - 2c438c816c45fa913b9810ce0939053db1193bb6 authored about 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - f8b46b31da3a4b9c803e9d25e9e4bf96f8511bea authored about 2 years ago by jrfnl <[email protected]>
Tests: move extra tests to the "risky" group
github.com/PHPCSStandards/PHPCSUtils - 0e8991c3666b4cd723c31fe4f95116f8a5fe7a27 authored about 2 years ago by Juliette <[email protected]>... as those are basically testing PHPCS itself and not the code in PHPCSUtils, so may start fai...
github.com/PHPCSStandards/PHPCSUtils - 6b4a752afcf586d6c5f65277c1009c7980890bab authored about 2 years ago by jrfnl <[email protected]>UtilityMethodTestCase::getTargetToken(): throw an exception when delimiter not found
github.com/PHPCSStandards/PHPCSUtils - 1e4177626176d7f040223570a7011c152ed65361 authored about 2 years ago by Juliette <[email protected]>PR 273 updated the UtilityMethodTestCase::getTargetToken()``method to fail a test with a descri...
github.com/PHPCSStandards/PHPCSUtils - 2ec3cbd2f3fb2497f1a80367f11ffacc2fde2986 authored about 2 years ago by jrfnl <[email protected]>UtilityMethodTestCase::getTargetToken(): throw a custom exception when target token not found
github.com/PHPCSStandards/PHPCSUtils - 2970e547c6ebbe1844b17ea07a779d1625d477b7 authored about 2 years ago by Juliette <[email protected]>PR 248 introduced the option to throw an exception when the target token couldn't be found (inst...
github.com/PHPCSStandards/PHPCSUtils - a58b17591ba0926ab182407f6efacb9533ab7ca6 authored about 2 years ago by jrfnl <[email protected]>UtilityMethodTestCase: split a test class in two
github.com/PHPCSStandards/PHPCSUtils - 189222e2a813658aea58ef80cf7766c19cc28ba4 authored about 2 years ago by Juliette <[email protected]>The tests for the `UtilityMethodTestCase::getTargetToken()` had a hidden dependency on the `test...
github.com/PHPCSStandards/PHPCSUtils - d0b91a3cc53fadc7a67b7d65f98770fe0c895533 authored about 2 years ago by jrfnl <[email protected]>BCFile::findStartOfStatement(): sync in new tests from upstream + add extra tests
github.com/PHPCSStandards/PHPCSUtils - 79164c603cbf1e7a64ffe403dd2c08a0708f2d35 authored about 2 years ago by Juliette <[email protected]>
Refs:
* https://github.com/squizlabs/PHP_CodeSniffer/commit/ef80e53de0e3c78f1a5599310d2b9803061a...
When inside a `switch` `case`/`default` `break`/`continue`/`return`/`exit`/`throw` statement, th...
github.com/PHPCSStandards/PHPCSUtils - 39a6967f1dc2c0542f92b2be35590b4614e3ce7a authored about 2 years ago by jrfnl <[email protected]>Follow up on version drop/ remove some more code
github.com/PHPCSStandards/PHPCSUtils - 3cb1d7d166002ae9716a7fdf4f173a1b1c1022f1 authored about 2 years ago by Juliette <[email protected]>Follow up on 250 and 347.
PR 250 introduced a polyfill for the PHPCS native `Tokens::tokenName(...
github.com/PHPCSStandards/PHPCSUtils - d10defdd7ed411432149c5ff529834738cbd3509 authored about 2 years ago by jrfnl <[email protected]>The "valid identifier" check was only in place to handle BC for PHPCS < 3.6.0 and should no long...
github.com/PHPCSStandards/PHPCSUtils - 1974cf5bcf4c48864ddc94c74076649c382ccbde authored about 2 years ago by jrfnl <[email protected]>Remove a line which was only added to the test case file for a PHPCS cross-version support issue...
github.com/PHPCSStandards/PHPCSUtils - 4b03f3b4b01bcd2455e566fa4e867f5e08d7461e authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - f729956e89758df2e149270642661d3812ae917d authored about 2 years ago by jrfnl <[email protected]>
PHP 8.2: add support for `true` type
github.com/PHPCSStandards/PHPCSUtils - c2a08c5e491ccdde07c58438c4e99150a2ddc447 authored about 2 years ago by Juliette <[email protected]>PHP 8.2 | ObjectDeclarations::getClassProperties(): add support for readonly classes
github.com/PHPCSStandards/PHPCSUtils - bdc9d704d8fae097ca67ceac3604d78712c1ee32 authored about 2 years ago by Juliette <[email protected]>PHP 8.2 | Scopes::isOOConstant(): add support for constants in traits
github.com/PHPCSStandards/PHPCSUtils - 50cb5356448b28e9edcc371bf53b02763029a9f2 authored about 2 years ago by Juliette <[email protected]>As pulled in upstream PR 3662 (not yet merged)
Ref:
* squizlabs/PHP_CodeSniffer 3662
As pulled in upstream PR 3662 (not yet merged)
Ref:
* squizlabs/PHP_CodeSniffer 3662
As pulled in upstream PR 3662 (not yet merged)
Ref:
* squizlabs/PHP_CodeSniffer 3662
PHP 8.2 introduces `readonly` classes. The `readonly` keyword can be combined with the `abstract...
github.com/PHPCSStandards/PHPCSUtils - 770fcfb51aa9d57329d11aa3faea82aab9d84411 authored about 2 years ago by jrfnl <[email protected]>As of PHP 8.2, it is allowed to declare constants in traits.
This commit adds support for detec...
github.com/PHPCSStandards/PHPCSUtils - 67f489819240c1a2e9fa8cb4974c67033a955220 authored about 2 years ago by jrfnl <[email protected]>PHP 8.1: add support for intersection types
github.com/PHPCSStandards/PHPCSUtils - dd41a730c5aad1f13e719e4463f4d3c1864f02b0 authored about 2 years ago by Juliette <[email protected]>
Ref:
* squizlabs/PHP_CodeSniffer 3581
Co-authored-by: Jaroslav Hanslík <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - a3c3e0e8c582820eb3bfbb5ed897b126045c7217 authored about 2 years ago by jrfnl <[email protected]>
Ref:
* squizlabs/PHP_CodeSniffer 3581
Co-authored-by: Jaroslav Hanslík <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - b68597849a15b517f120564645c45011e7bfb0fa authored about 2 years ago by jrfnl <[email protected]>Sync with upstream PRs 3581 which added support for PHP 8.1 intersection types to the method.
R...
github.com/PHPCSStandards/PHPCSUtils - 0e869371fb3ac56992c5501b2782f0c95e8b7ee7 authored about 2 years ago by jrfnl <[email protected]>PHP 8.1 | BCFile/FunctionDeclarations::get[Method]Parameters(): add test with new in initializers
github.com/PHPCSStandards/PHPCSUtils - 422e688a6d2458ab864a8d3fa7a1732c4b366747 authored about 2 years ago by Juliette <[email protected]>... to verify this is handled correctly.
github.com/PHPCSStandards/PHPCSUtils - 91dc05c35b1b5ff9ddf1a49f95f6a167447eff9c authored about 2 years ago by jrfnl <[email protected]>PHP 8.1: add support for readonly properties
github.com/PHPCSStandards/PHPCSUtils - b847a9592738dc07d0e20d17dfdecfba82c24776 authored about 2 years ago by Juliette <[email protected]>PHP 8.1 | PassedParameters::hasParameters(): prevent false positives for first class callable de...
github.com/PHPCSStandards/PHPCSUtils - 7472c96d4084427976127e8d4803f5bc528ca7f6 authored about 2 years ago by Juliette <[email protected]>
Includes:
* Updating the `Collections::$propertyModifierKeyword` property to allow for the `T_RE...
> ... in constructor property promotion.
>
> Note: the `property_readonly` key will always be ad...
PHP 8.1 introduced a new callback declaration syntax, called "first class callables".
This synta...
PHP 8.1 | PassedParameters::getParameters(): document test with named params after argument unpa...
github.com/PHPCSStandards/PHPCSUtils - 81d22d0bbf1f37c05296ead629b9c23955ecb89e authored about 2 years ago by Juliette <[email protected]>BCTokens: add support for new `contextSensitiveKeywords` token array
github.com/PHPCSStandards/PHPCSUtils - b1a488948f3fc7e5a409c549438a71d13f5320c7 authored about 2 years ago by Juliette <[email protected]>PHP 8.1 | BCFile/FunctionDeclarations::get[Method]Properties(): add tests with `never` type
github.com/PHPCSStandards/PHPCSUtils - 712799c47e6a230d0153e8256195255bb8a038da authored about 2 years ago by Juliette <[email protected]>Prior to PHP 8.1, using named arguments after a variadic argument in a function call was a compi...
github.com/PHPCSStandards/PHPCSUtils - 190a5e548f67d2ccbc24466e61744fbdf39f976a authored about 2 years ago by jrfnl <[email protected]>... as introduced in PHPCS 3.7.0 and updated in PHPCS 3.7.1.
Upstream PR 3484 introduces a new ...
github.com/PHPCSStandards/PHPCSUtils - 4530d89463313705229f81b1caa9737c091205ef authored about 2 years ago by jrfnl <[email protected]>
Ref:
* squizlabs/PHP_CodeSniffer 3582
Co-authored-by: Jaroslav Hanslík <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - a5a9bbbfe627f4b4f7c6dac7a3491f02cc7f460e authored about 2 years ago by jrfnl <[email protected]>PHP 8.1: add support for enums
github.com/PHPCSStandards/PHPCSUtils - ebcd67cce6834e40edd77e978aee4299a4ef81bd authored about 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - f90dd123b575b9c4cb999474c927a1afa851f38e authored about 2 years ago by jrfnl <[email protected]>
Handle enums in the same way as interface properties (neither are supported by PHP).
> Neither ...
github.com/PHPCSStandards/PHPCSUtils - 71f6c6d4d680872c049aca8facc724b916705fc2 authored about 2 years ago by jrfnl <[email protected]>
> An `enum` declaration can implement one or more interfaces.
>
> This commit updates the `File:...
... to verify the method correctly throws an exception.
github.com/PHPCSStandards/PHPCSUtils - 699289db2d64009dbdfa036578deed1f668273ab authored about 2 years ago by jrfnl <[email protected]>PHP 8.1 introduced a new type of OO structure: enums.
Enums are a named structure, so the `BCFi...
github.com/PHPCSStandards/PHPCSUtils - 59c43ca316a5246c789ae8e5f2da5f3bf25bf017 authored about 2 years ago by jrfnl <[email protected]>PHP 8.1 introduced a new type of OO structure: enums.
Unlike classes, properties are not allowe...
github.com/PHPCSStandards/PHPCSUtils - d693735313073d49e071744e54e19cd6de204053 authored about 2 years ago by jrfnl <[email protected]>PHP 8.1 introduced a new type of OO structure: enums.
Alike classes, methods can be declared in...
github.com/PHPCSStandards/PHPCSUtils - ef4ead677c8ff0a27489fe7e30b9ef02b7337371 authored about 2 years ago by jrfnl <[email protected]>PHP 8.1 introduced a new type of OO structure: enums.
Alike classes, constants can be declared ...
github.com/PHPCSStandards/PHPCSUtils - 6451f9f3e29ebe81cc19816c7bb6f0c75e166e85 authored about 2 years ago by jrfnl <[email protected]>PHP 8.1 introduced a new type of OO structure: enumerations, which uses the `enum` keyword / `T_...
github.com/PHPCSStandards/PHPCSUtils - 5f07dad26a7d71102b08cc1f80e8bed5a178d3a2 authored about 2 years ago by jrfnl <[email protected]>PHP 8.0: add support for attributes
github.com/PHPCSStandards/PHPCSUtils - 0b2f4e1a9d38a8957a213a87139994c12e0f3c65 authored about 2 years ago by Juliette <[email protected]>As of PHP 8.0, attributes can be attached to functions, closures, arrow functions, classes, inte...
github.com/PHPCSStandards/PHPCSUtils - d3a448e0ffa33c8c1f5b308f3b73f0abc246af10 authored about 2 years ago by jrfnl <[email protected]>Sync with upstream PR 3203 which ensures that attributes for properties are correctly regarded a...
github.com/PHPCSStandards/PHPCSUtils - 174ee37aa575ff5b23c75025b80b2e8fd5db44ca authored about 2 years ago by jrfnl <[email protected]>Efficiency tweak: skip over potentially large attribute declarations when walking up to find a n...
github.com/PHPCSStandards/PHPCSUtils - d6a85810f9a88f2cab9febe8594255e95237d154 authored about 2 years ago by jrfnl <[email protected]>As of PHP 8.0, attributes can be attached to functions, closures, arrow functions, classes, inte...
github.com/PHPCSStandards/PHPCSUtils - 4c2803602af28347fa1232baa4dde195cc3dfa4b authored about 2 years ago by jrfnl <[email protected]>> This commit adds handling of parameter attributes to the `File::getMethodParameters()` method ...
github.com/PHPCSStandards/PHPCSUtils - 19aa5768db443f28e18ae1acbcfa2148635d28ae authored about 2 years ago by jrfnl <[email protected]>PHP 8.0: add support for match expressions
github.com/PHPCSStandards/PHPCSUtils - 25ac2cdb883d29e7f6b34ec6da83942811022d3e authored about 2 years ago by Juliette <[email protected]>PHP 8.0 introduced match expressions as an new control structure.
While a `match` expression wi...
github.com/PHPCSStandards/PHPCSUtils - 390e964e4fb53d2e14b5a8c2c6278a6c40a1acaf authored about 2 years ago by jrfnl <[email protected]>PHP 8.0 introduced match expressions, which can contain arrays in both the match "case" as well ...
github.com/PHPCSStandards/PHPCSUtils - f5f91ee80321f232c0b7a6b6053170f4cc43e502 authored about 2 years ago by jrfnl <[email protected]>PHP 8.0 | BCFile/FunctionDeclarations::get[Method]Parameters(): add tests with trailing commas
github.com/PHPCSStandards/PHPCSUtils - dbc671c13ac96c361bd06f14452f5eba33be52e0 authored about 2 years ago by Juliette <[email protected]>Since PHP 8.0, trailing commas are allowed in parameter lists and closure `use` lists.
This add...
github.com/PHPCSStandards/PHPCSUtils - 8e35043d2c0a28b8e505e69bbe8cea0fc4f9fc8e authored about 2 years ago by jrfnl <[email protected]>PHP 7.4/8.1 | PassedParameters::getParameters(): add tests with array unpacking in array express...
github.com/PHPCSStandards/PHPCSUtils - 290da2e3856aa0d3fb5ca541deab46bf8ba69245 authored about 2 years ago by Juliette <[email protected]>Adds tests to verify compatibility with PHP 7.4 array unpacking in array expressions and PHP 8.1...
github.com/PHPCSStandards/PHPCSUtils - 9eea60bf3486ee786b072ef24cdcd34f0d2179aa authored about 2 years ago by jrfnl <[email protected]>BCFile/FunctionDeclarations::get[Method]Parameters: sync in new test from upstream
github.com/PHPCSStandards/PHPCSUtils - a46cb7223b4fcded2c9349bd4b4db99af64b5d29 authored about 2 years ago by Juliette <[email protected]>BCFile/FunctionDeclarations::get[Method]Properties(): add extra test
github.com/PHPCSStandards/PHPCSUtils - db3a456c13045b1dd202cf41b7c9e651d4a47b04 authored about 2 years ago by Juliette <[email protected]>Add test documenting behaviour for comments
This test demonstrates and documents the existing b...
github.com/PHPCSStandards/PHPCSUtils - b09e02b137611c9169a12573943c82dc02706b69 authored about 2 years ago by jrfnl <[email protected]>... to safeguard against a tokenizer issue which was fixed in PHPCS 3.5.7.
Ref: squizlabs/PHP_C...
github.com/PHPCSStandards/PHPCSUtils - b6adfc2fe31aea1993628e36008cb3f2c1385b78 authored about 2 years ago by jrfnl <[email protected]>BCFile::findEndOfStatement(): sync in new tests from upstream
github.com/PHPCSStandards/PHPCSUtils - 96dd2afe2068d531b14e1089b972a5b28c2e76ef authored about 2 years ago by Juliette <[email protected]>
Refs:
* https://github.com/squizlabs/PHP_CodeSniffer/commit/faff2f08399546faa306f6903b3df3920a46...
Tokens\Collections: simplify by implementing a magic __callStatic() method
github.com/PHPCSStandards/PHPCSUtils - 28794c7566962a27a8d29f28d1f898adf1eed4c9 authored about 2 years ago by Juliette <[email protected]>Move most pertinent documentation to the properties and remove it from the methods in anticipati...
github.com/PHPCSStandards/PHPCSUtils - cf6fd6a2a168a840dc4bad4bf0582187a2a8820a authored about 2 years ago by jrfnl <[email protected]>... for all methods without logic and where there has been no name-change between the (now depre...
github.com/PHPCSStandards/PHPCSUtils - dabffea738615c83875525d7e33cf22dc4d94676 authored about 2 years ago by jrfnl <[email protected]>As much as possible, make all methods use (`private`) properties for the actual token arrays.
I...
github.com/PHPCSStandards/PHPCSUtils - fde54385ad154f01c9c1955cd4a4a1fd552d6b33 authored about 2 years ago by jrfnl <[email protected]>GH Actions: various updates
github.com/PHPCSStandards/PHPCSUtils - b6ceb805322ccdf680e86992d469827e306c7b35 authored about 2 years ago by Juliette <[email protected]>The `xmllint-problem-matcher` action runner has released a new version which updates it to use n...
github.com/PHPCSStandards/PHPCSUtils - e741f083ecba9eec91e7eb055a5d3819d2a025a7 authored about 2 years ago by jrfnl <[email protected]>GitHub has deprecated the use of `set-output` (and `set-state`) in favour of new environment fil...
github.com/PHPCSStandards/PHPCSUtils - d31bd8a9b3a5e013f183a68d956c54ecb09080c1 authored about 2 years ago by jrfnl <[email protected]>Drop support for PHPCS < 3.7.1
github.com/PHPCSStandards/PHPCSUtils - 0ff0080528871027ce332a939728c5b7397665cf authored about 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - 3b413c1c566b91719c64ed4b791332ebe224a9b8 authored about 2 years ago by jrfnl <[email protected]>
This method is no longer needed.
github.com/PHPCSStandards/PHPCSUtils - 20d072e9e82b7dae7d887c280313fb659637506d authored about 2 years ago by jrfnl <[email protected]>This method is no longer needed.
github.com/PHPCSStandards/PHPCSUtils - d428a8246c76c724ddb2cf5a417ddf710e2caa37 authored about 2 years ago by jrfnl <[email protected]>Includes deprecating the `isArrowFunction()` and `getArrowFunctionOpenClose()` methods.
Note: a...
github.com/PHPCSStandards/PHPCSUtils - b5d170e59201ac42a8cf3790bf53f050647e5639 authored about 2 years ago by jrfnl <[email protected]>
Includes removing the following constants:
* `Numbers::REGEX_NUMLIT_STRING`
* `Numbers::REGEX_HE...
This method is no longer needed.
github.com/PHPCSStandards/PHPCSUtils - f7cc50ac97036d4aeeba60897dceb561c3597d72 authored about 2 years ago by jrfnl <[email protected]>
This means the following methods are now deprecated:
* `PHPCSUtils\Tokens\Collections::arrowFunc...
These methods were introduced to support detecting whether a token was part of a nullsafe object...
github.com/PHPCSStandards/PHPCSUtils - 2f33ac4504d40b8cf09810f311982afcd8e26d7b authored about 2 years ago by jrfnl <[email protected]>Includes moving select tests from the `IsReferenceDiffTest` case file to the `isReference` case ...
github.com/PHPCSStandards/PHPCSUtils - 232d1f0c649dda1e39b53d5fe18ddb20244896be authored about 2 years ago by jrfnl <[email protected]>This method was introduced to support detecting whether a token was part of a nullsafe object op...
github.com/PHPCSStandards/PHPCSUtils - ca96ca9232efe2635114a3ddf7fd5127a10608ac authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - dc69ffe973153e9a424a86ae317a3fe7c6ba2e4b authored about 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - e2d9093af4e68ef80dd75c4ece07f009c7de6b45 authored about 2 years ago by jrfnl <[email protected]>
This method was introduced to support detecting whether a `&` was used as a union type separator...
github.com/PHPCSStandards/PHPCSUtils - c6b0a99eec407fca7dc615246f46f315fb9d93a2 authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - da1ea05485db8e4a3934e8b013ca1ab2569a337c authored about 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - 231e1957a1c1b4922d2aaf55c688a3dbe97296dc authored about 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - 4b1bc7ab28017583d5b530360455ef1b12dbe860 authored about 2 years ago by jrfnl <[email protected]>