-
WPCS already contained a `ClassInstantiation` sniff, so after seeing #2047 I've run the PSR12 version over the WPCS unit tests for the sniff to see if we could switch over at some point.
The test r…
jrfnl updated
6 years ago
-
Is there a way to test for psr-12 ?
robov updated
6 years ago
-
input:
```php
if (reallyReallyReallyLongFunction() && $this->reallyreallyreallyreallyLongMethodName()) {
return true;
}
if ($this || $that && $theOtherThing && $someReallyReallyReallyLongBool…
mgrip updated
6 years ago
-
When I type the following
```php
public function test( array $arr ) : array {
return $arr;
}
```
I get the error
> Return type declaration not allowed (PHP 7)
And typing this
``…
-
Quoting @nicoder:
> As far as I can tell, both are PSR-2-compliant, and PSR-12 adds precisions because there was debate about that:
>
> https://github.com/php-fig/fig-standards/blob/master/propo…
-
I'm new at this, but I tried to add phpcs with Travis and it won't work. It seems that it's because i made my own PHP Standard from the code of the PEAR Standard.
Is there maybe a way to tell Travis …
-
An arbitrary config directive `testVersion` is used for the [PHPCompatibility](https://github.com/wimg/PHPCompatibility/) standard to pass the PHP versions code should be compatible with and is subseq…
jrfnl updated
6 years ago
-
Using `declare_strict_types`, the fixer will place `declare(strict_types=1);` on the same line as the opening `
-
Hi,
While working on a couple of PRs around brace placement, I noticed that return type hints are not fully styled.
What does this mean you ask?!
Neither
```php
function foo() : bar
```
…
-
A heads up. I've forked your classes to move to a utility class. Not sure if you are interested in going that route at all but if so, I'll send a pull request.
https://github.com/joelpittet/PHP-stab…